The Talmud
זבחים דף כ״טZevachim 29b
Amud b of Zevachim 29 — the second side of the page
English rendering prepared for The Gematria — not a historical translation.
Zevachim 29b · זבחים כ״ט ב
כפסולי המוקדשין ויפסל
— as pesulei ha-mukdashin (consecrated animals that became blemished and were redeemed), and that it becomes unfit.
ת"ל (דברים יד, כג) ואכלת לפני ה' אלהיך מעשר דגנך וגו' מקיש בכור למעשר מה מעשר אינו נפסל משנה לחבירתה אף בכור אינו נפסל משנה לחבירתה
The verse states "and you shall eat before the Lord your God … the tithe of your grain", and so forth (Deuteronomy 14:23): it likens the firstborn to the tithe — just as the tithe does not become unfit from one year to the next, so too the firstborn does not become unfit from one year to the next.
איצטריך סלקא דעתך אמינא הני מילי בכור דלאו בר הרצאה הוא אבל קדשים דבני הרצאה נינהו אימא לא לירצו קמ"ל
It was needed: it might have entered your mind to say that this applies to a firstborn, which is not subject to acceptance; but consecrated animals, which are subject to acceptance — say they should not be accepted. So he teaches us otherwise.
ואכתי מהתם נפקא (דברים כג, כב) והיה בך חטא ולא בקרבנך חטא
But still, it follows from there: "and it shall be sin in you" (Deuteronomy 23:22) — and not in your offering sin.
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.