The Talmud
קידושין דף נ״בKiddushin 52a
Amud a of Kiddushin 52 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Kiddushin 52a · קידושין נ״ב א
האחד חולץ לשתיהן והשנים אחד חולץ ואחד מיבם אם קדמו וכנסו אין מוציאין אותן מידם
— the one performs chalitzah (the removing of the shoe, by which the widow of a brother who died childless is released) for both of them, and of the two, one performs chalitzah and one performs yibbum (levirate marriage — that a man take the widow of the brother who died childless); and if they went ahead and married them, they do not take them out of their hand.
דוקא מיחלץ והדר יבומי אבל יבומי והדר מיחלץ לא דקא פגע ביבמה לשוק
Specifically chalitzah and afterwards yibbum; but yibbum and afterwards chalitzah, no — for he encounters a yevamah (the childless widow whom her husband's brother takes in marriage) who is forbidden to an outsider.
ת"ש דתני טביומי לזה חמשה בנים ולזה חמשה בנות ואמר אחת מבנותיך מקודשת לאחד מבני כל אחת ואחת צריכה חמשה גיטין מת אחד מהם כל אחת ואחת צריכה ארבעה גיטין וחליצה מאחד מהן
Come and hear, for Tavyomi taught: this one has five sons and that one has five daughters, and he said: one of your daughters is betrothed to one of my sons — each and every one requires five bills of divorce. If one of them died, each and every one requires four bills of divorce and chalitzah from one of them.
וכ"ת ה"נ כשהוכרו ולבסוף נתערבו הא אחת מבנותיך לאחד מבני קתני תיובתא דרבא תיובתא והילכתא כוותיה דאביי ביע"ל קג"ם
And should you say: here too it is where they were known apart and only afterwards became mixed — but surely it teaches "one of your daughters to one of my sons"! This is a refutation of Rava. It is a refutation. And the halachah is in accordance with Abaye in Ya'al Kegam (the mnemonic of the six cases in which the halachah follows Abaye).
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.