The Talmud
סנהדרין דף פ״דSanhedrin 84a
Amud a of Sanhedrin 84 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Sanhedrin 84a · סנהדרין פ״ד א
וערל בשר לא יבא אל מקדשי (לשרתני)
— and uncircumcised in flesh, shall enter into My sanctuary" (Ezekiel 44:9).
אונן מנלן דכתיב (ויקרא כא, יב) ומן המקדש לא יצא ולא יחלל את מקדש אלהיו הא אחר שלא יצא חילל
An onen (a mourner on the day his dead lies unburied) — from where do we know it? For it is written "neither shall he go out of the sanctuary, nor profane the sanctuary of his God" (Leviticus 21:12) — hence another, who did not go out, has profaned it.
א"ל רב אדא לרבא ונילף חילול חילול מתרומה מה להלן במיתה אף כאן במיתה
Rav Adda said to Rava: then let us derive "profaning", "profaning" from terumah (the priestly portion): just as there it is by death, so too here it is by death!
מי כתיב ביה בגופיה מכללא קאתי הוי דבר הבא מן הכלל וכל דבר הבא מן הכלל אין דנין אותו בגזרה שוה
Is it written of him himself? It comes by inference; it is a thing that comes from an inference, and any thing that comes from an inference — one does not derive it by gezerah shavah (a verbal analogy, the linking of two verses by a word common to both).
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.