The Talmud
יומא דף י״אYoma 11a
Amud a of Yoma 11 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Yoma 11a · יומא י״א א
כל השערים שהיו שם לא היה להם מזוזה חוץ משער ניקנור שלפנים ממנו לשכת פרהדרין
All the gates that were there had no mezuzah (the scroll of scripture fixed to the doorpost), except the gate of Nicanor, within which was the Chamber of Parhedrin.
לימא רבנן היא ולא ר' יהודה דאי ר' יהודה היא גופה גזירה ואנן ניקום ונגזור גזירה לגזירה אפילו תימא ר' יהודה כולה חדא גזירה היא
Shall we say it is the Rabbis' and not Rabbi Yehuda's? For if it is Rabbi Yehuda's — that itself is a decree, and shall we then arise and decree a decree upon a decree? You may even say it is Rabbi Yehuda's: the whole of it is one decree.
ת"ר בשעריך אחד שערי בתים ואחד שערי חצירות ואחד שערי מדינות ואחד שערי עיירות יש בהן חובת מצוה למקום משום שנא' (דברים ו, ט) וכתבתם על מזוזות ביתך ובשעריך
The Rabbis taught: "and upon your gates" — the gates of houses and the gates of courtyards, the gates of cities and the gates of towns alike bear the obligation of a commandment toward the Omnipresent, because it is said "and you shall write them upon the door-posts of your house, and upon your gates" (Deuteronomy 6:9).
א"ל אביי לרב ספרא הני אבולי דמחוזא מ"ט לא עבדו להו רבנן מזוזה אמר ליה הנהו חזוק לאקרא דכובי הוא דעבידי א"ל ואקרא דכובי גופה תבעי מזוזה דהא אית בה דירה לשומר בית האסורין דהא תניא בית הכנסת שיש בו בית דירה לחזן הכנסת חייבת במזוזה
Abaye said to Rav Safra: these gateways of Mechoza — what is the reason the Rabbis did not make a mezuzah for them? He said to him: those are made as a reinforcement for Akra de-Kuvei. He said to him: but Akra de-Kuvei itself should require a mezuzah, for there is a dwelling in it for the guard of the prison! For it was taught: a synagogue that has a dwelling house in it for the attendant of the synagogue is liable to the mezuzah.
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.