יבמות ג:ז · Yevamot 3:7

שְׁלֹשָׁה אַחִים, שְׁנַיִם מֵהֶן נְשׂוּאִים שְׁתֵּי אֲחָיוֹת, וְאֶחָד נָשׂוּי נָכְרִית, מֵת אֶחָד מִבַּעֲלֵי אֲחָיוֹת, וְכָנַס נָשׂוּי נָכְרִית אֶת אִשְׁתּוֹ, וּמֵתָה אִשְׁתּוֹ שֶׁל שֵׁנִי, וְאַחַר כָּךְ מֵת נָשׂוּי נָכְרִית, הֲרֵי זוֹ אֲסוּרָה עָלָיו עוֹלָמִית, הוֹאִיל וְנֶאֶסְרָה עָלָיו שָׁעָה אֶחָת. שְׁלֹשָׁה אַחִים, שְׁנַיִם מֵהֶן נְשׂוּאִין שְׁתֵּי אֲחָיוֹת, וְאֶחָד נָשׂוּי נָכְרִית, גֵּרֵשׁ אֶחָד מִבַּעֲלֵי אֲחָיוֹת אֶת אִשְׁתּוֹ, וּמֵת נָשׂוּי נָכְרִית, וּכְנָסָהּ הַמְּגָרֵשׁ, וָמֵת, זוֹ הִיא שֶׁאָמְרוּ, וְכֻלָּן שֶׁמֵּתוּ אוֹ נִתְגָּרְשׁוּ, צָרוֹתֵיהֶן מֻתָּרוֹת:
In the case of three brothers, two of whom were married to two sisters and one who was married to an unrelated woman, the following occurred: One of the husbands of the sisters died, and he who was married to the unrelated woman married the deceased husband’s wife, and then the wife of the second brother, the other one of the sisters, died. Afterward, the brother who was married to the unrelated woman died, leaving two women for levirate marriage before the remaining brother: The unrelated woman and the woman who was previously prohibited as the sister of his deceased wife. In this case, the sister is forbidden to him forever. She is not forbidden due to her status as his wife’s sister, as his wife already died and one’s wife’s sister is permitted after the wife’s death. However, since she was already forbidden to him at one time, she is forbidden to him forever. When she first happened before the brothers for levirate marriage, before the third brother married her, she was forbidden to the second brother as his wife’s sister. Therefore, she is forbidden to him forever. In addition, she exempts her rival wife, the unrelated woman, from levirate marriage. In the case of three brothers, two of whom were married to two sisters and one who was married to an unrelated woman, the following occurred: Shimon, the husband of one of the sisters, divorced his wife, and then Levi, who was married to the unrelated woman, died, and Shimon, the man who divorced his wife, married, i.e., performed levirate marriage with, her, i.e., this unrelated woman. And then Shimon himself later died, so that the unrelated woman happened for levirate marriage before Reuven, the third brother, who is married to the second sister. In this scenario, Reuven is allowed to consummate the levirate marriage with the unrelated woman. This is the case that was referred to when they said: And with regard to all those fifteen forbidden relatives who died or were divorced, their rival wives are permitted to enter into levirate marriage. This is because at the time that they happened before the yavam for levirate marriage they were no longer the rival wives of a forbidden relative.

Word-by-word Breakdown (מילים ושרשים)

שְׁלֹשָׁה → three [שׁ - ל - ש]אַחִים → brothers [א - ח - ה]שְׁנַיִם → two [ש - נ - י]מֵהֶן → of them [מ - ה]נְשׂוּאִים → married [נ - ש - א]שְׁתֵּי → two [ש - נ - י]אֲחָיוֹת → sisters [א - ח - ה]וְאֶחָד → and one [א - ח - ד]נָשׂוּי → married [נ - ש - א]נָכְרִית → an unrelated woman [נ - כ - ר]מֵת → died [מ - ו - ת]אֶחָד → one [א - ח - ד]מִבַּעֲלֵי → of the husbands of [ב - ע - ל]אֲחָיוֹת → the sisters [א - ח - ה]וְכָנַס → and married [כ - נ - ס]נָשׂוּי → he who was married to [נ - ש - א]נָכְרִית → the unrelated woman [נ - כ - ר]אֶת → [direct object marker] אִשְׁתּוֹ → his wife [א - ש - ה]וּמֵתָה → and died [מ - ו - ת]אִשְׁתּוֹ → the wife [א - ש - ה]שֶׁל → of שֵׁנִי → the second [ש - נ - י]וְאַחַר → and afterward [א - ח - ר]כָּךְ → so [כ - כ]מֵת → died [מ - ו - ת]נָשׂוּי → the one married to [נ - ש - א]נָכְרִית → the unrelated woman [נ - כ - ר]הֲרֵי → behold [ה - ר - ה]זוֹ → this אֲסוּרָה → forbidden [א - ס - ר]עָלָיו → to him עוֹלָמִית → forever [ע - ל - ם]הוֹאִיל → since [י - א - ל]וְנֶאֶסְרָה → she was forbidden [א - ס - ר]