The Talmud
יבמות דף כ׳Yevamot 20a
Amud a of Yevamot 20 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Yevamot 20a · יבמות כ׳ א
שמגרשה בגט ומחזירה התם נמי לימא ויבמה עדיין יבומין הראשונים עליה ותיבעי חליצה
— that he divorces her with a bill of divorce and takes her back. There too, let us say "and perform the duty of a husband's brother to her": the first yibbum (levirate marriage — that a man take the widow of the brother who died childless) is still upon her, and let her require chalitzah (the removing of the shoe, by which the widow of a brother who died childless is released)!
שאני התם דאמר קרא (דברים כה, ה) ולקחה לו לאשה כיון שלקחה נעשית כאשתו לכל דבר אי הכי הכא נמי הא כתב רחמנא (דברים כה, ה) ויבמה
There it is different, for the verse says "and take her to him to wife" (Deuteronomy 25:5): once he has taken her, she has become as his wife in every matter. If so, here too — surely the Merciful One wrote "and perform the duty of a husband's brother to her" (Deuteronomy 25:5)!
ומה ראית מסתברא שדי היתירא אהיתירא ושדי איסורא אאיסורא
And what did you see? It stands to reason: cast the permission upon the permission, and cast the prohibition upon the prohibition.
ולר' שמעון דאמר הואיל ובא ומצאה בהיתר ולא עמדה עליו שעה אחת באיסור אלא מעתה אחותו מאמו שנשאה אחיו מאביו ואחר כך נולד אח ומת תתייבם הואיל ובא ומצאה בהיתר
And according to Rabbi Shimon, who said "since he came and found her permitted, and she did not stand before him for one hour forbidden" — if that is so, his sister from his mother whom his brother from his father married, and afterwards a brother was born and he died: let her be taken in yibbum, since he came and found her permitted!
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.