The Talmud
זבחים דף קי״טZevachim 119a
Amud a of Zevachim 119 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Zevachim 119a · זבחים קי״ט א
דכתיב (מלכים א ב, יא) והימים אשר מלך דוד על ישראל מ' שנה בחברון מלך ז' שנים [וגו']
— as it is written "and the days that David reigned over Israel were forty years: seven years he reigned in Hebron", and so forth (I Kings 2:11).
ובשלמה כתיב (דברי הימים ב ג, ב) ויחל לבנותו בשנת ארבע למלכותו נשתיירו לשילה שלש מאות ושבעים חסר אחת:
And of Solomon it is written "And he began to build it in the fourth year of his reign" (II Chronicles 3:2). There remained for Shiloh three hundred and seventy less one.
באו לנוב וגבעון [וכו']: מנא ה"מ דת"ר (דברים יב, ט) כי לא באתם עד עתה אל המנוחה ואל הנחלה
"They came to Nob and Gibeon", and so forth: from where are these things derived? For the Rabbis taught: "for you are not as yet come to the rest and to the inheritance" (Deuteronomy 12:9).
אל המנוחה זו שילה נחלה זו ירושלי' למה חלקן כדי ליתן היתר בין זה לזה
"To the rest" — this is Shiloh; "inheritance" — this is Jerusalem. Why did it divide them? In order to give permission between this one and that one.
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.