The Talmud
מגילה דף ד׳Megillah 4a
Amud a of Megillah 4 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Megillah 4a · מגילה ד׳ א
לוד ואונו וגיא החרשים מוקפות חומה מימות יהושע בן נון הוו
Lod and Ono and Ge-harashim were surrounded by a wall from the days of Joshua son of Nun.
והני יהושע בננהי והא אלפעל בננהי דכתיב (דברי הימים א ח, יב) בני אלפעל עבר ומשעם ושמר הוא בנה את אונו ואת לוד ובנותיה ולטעמיך אסא בננהי דכתיב (דברי הימים ב יד, ה) ויבן (אסא את ערי הבצורות אשר ליהודה)
And did Joshua build these? But surely Elpaal built them, as it is written "the sons of Elpaal: Eber, and Misham, and Shemed, who built Ono, and Lod, with its towns" (I Chronicles 8:12). And according to your reasoning, did Asa build them, as it is written "and Asa built the fortified cities that are in Judah" (II Chronicles 14:5)?
אמר ר' אלעזר הני מוקפות חומה מימות יהושע בן נון הוו חרוב בימי פילגש בגבעה ואתא אלפעל בננהי הדור אינפול אתא אסא שפצינהו
Rabbi Elazar said: these were surrounded by a wall from the days of Joshua son of Nun; they were laid waste in the days of the concubine at Gibeah, and Elpaal came and built them; they fell again, and Asa came and repaired them.
דיקא נמי דכתיב (דברי הימים ב יד, ו) ויאמר ליהודה נבנה את הערים האלה מכלל דערים הוו מעיקרא ש"מ
This too is precise, for it is written "and he said to Judah: let us build these cities" (II Chronicles 14:6) — from which it follows that they were cities from the outset. Learn from this.
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.