The Talmud
בכורות דף ו׳Bechorot 6a
Amud a of Bechorot 6 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Bekhorot 6a · בכורות ו׳ א
תלמוד לומר פטר חמור פטר חמור שני פעמים פטרי חמורים אמרתי לך ולא פטרי סוסים וגמלים
The verse states "peter chamor" (the firstborn of a donkey, which is redeemed with a lamb), and "peter chamor" a second time: the firstborn of donkeys I said to you, and not the firstborn of horses and camels.
פריך רב אחאי אי כתב רחמנא חד הוה אמינא דבר שהיה בכלל ויצא מן הכלל ללמד לא ללמד על עצמו יצא אלא ללמד על הכלל כולו יצא ולעולם בשה
Rav Achai objects: had the Merciful One written it only once, I would have said — a matter that was included in a general rule and then emerged from that rule to teach, emerged not to teach about itself alone but to teach about the whole rule — and so every firstborn of an unclean animal would be redeemed with a lamb.
כתב רחמנא פטר חמור אחרינא פטרי חמורים ולא פטרי סוסים וגמלים ואימא מעטינהו משה ולעולם בכל דבר
So the Merciful One wrote a second "peter chamor": the firstborn of donkeys, and not the firstborn of horses and camels. But say instead that the second mention excludes them only from the lamb, and that they are in fact redeemed with anything at all.
א"כ לכתוב רחמנא פטר חמור תפדה בשה וחמור תפדה בשה פטר חמור תפדה בשה פטר חמור תפדה בשה למה לי פטרי חמורים אמרתי לך ולא פטרי סוסים וגמלים
If so, let the Merciful One write "the firstborn of a donkey you shall redeem with a lamb" and then "and a donkey you shall redeem with a lamb". Why do I need "the firstborn of a donkey you shall redeem with a lamb" and again "the firstborn of a donkey you shall redeem with a lamb"? To say: the firstborn of donkeys I said to you, and not the firstborn of horses and camels.
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.