Yevamos 3:3-3:6
Yevamos3: 3
הָיְתָה אַחַת מֵהֶן אֲסוּרָה עַל זֶה אִסּוּר עֶרְוָה, וְהַשְּׁנִיָּה אֲסוּרָה עַל זֶה אִסּוּר עֶרְוָה — הָאֲסוּרָה לָזֶה מֻתֶּרֶת לָזֶה, וְהָאֲסוּרָה לָזֶה מֻתֶּרֶת לָזֶה. וְזוֹ הִיא שֶׁאָמְרוּ: ,,אֲחוֹתָהּ כְּשֶׁהִיא יְבִמְתָּהּ — אוֹ חוֹלֶצֶת אוֹ מִתְיַבֶּמֶת”.
[If] one of them was forbidden to one [brother] by the ervah prohibition, and the second one was forbidden to the other [brother] by the ervah prohibition —- the one forbidden to this [brother] is permitted to the other [brother], while the one forbidden to that [brother] is permitted to this [brother]. This is what was meant by the statement: [If] her sister is her [fellow] yevamah she may either perform chalitzah or be taken in yibum.
Yevamos3: 4
שְׁלֹשָׁה אַחִין, שְׁנַיִם מֵהֶן נְשׂוּאִין שְׁתֵּי אֲחָיוֹת, אוֹ אִשָּׁה וּבִתָּהּ אוֹ אִשָּׁה וּבַת בִּתָּהּ, אוֹ אִשָּׁה וּבַת בְּנָהּ — הֲרֵי אֵלּוּ חוֹלְצוֹת וְלֹא מִתְיַבְּמוֹת. וְרַבִּי שִׁמְעוֹן פּוֹטֵר. הָיְתָה אַחַת מֵהֶן אֲסוּרָה עָלָיו אִסּוּר עֶרְוָה — אָסוּר בָּהּ וּמֻתָּר בַּאֲחוֹתָהּ. אִסּוּר מִצְוָה אוֹ אִסּוּר קְדֻשָּׁה — חוֹלְצוֹת וְלֹא מִתְיַבְּמוֹת.
[If there were] three brothers, [and] two of them were married to two sisters, or [to] a woman and her daughter, or daughter's daughter, or son's daughter -— they require chalitzah but may not be taken in yibum. R' Shimon, however, releases [them]. [If] one of them was forbidden to him by the ervah prohibition, he is forbidden to her but permitted to her sister. [If it was] a prohibition by commandment or because of sanctity, she requires chalitzah but may not be taken in yibum.
Yevamos3: 5
שְׁלֹשָׁה אַחִין, שְׁנַיִם מֵהֶם נְשׂוּאִים שְׁתֵּי אֲחָיוֹת, וְאֶחָד מֻפְנֶה, מֵת אֶחָד מִבַּעֲלֵי אֲחָיוֹת, וְעָשָׂה בָהּ מֻפְנֶה מַאֲמָר, וְאַחַר כָּךְ מֵת אָחִיו הַשֵּׁנִי — בֵּית שַׁמַּאי אוֹמְרִים: אִשְׁתּוֹ עִמּוֹ, וְהַלָּה תֵצֵא מִשּׁוּם אֲחוֹת אִשָּׁה. וּבֵית הִלֵּל אוֹמְרִים: מוֹצִיא אֶת אִשְׁתּוֹ בְּגֵט וּבַחֲלִיצָה, וְאֵשֶׁת אָחִיו בַּחֲלִיצָה. זוֹ הִיא שֶׁאָמְרוּ: ,,אוֹי לוֹ עַל אִשְׁתּוֹ וְאוֹי לוֹ עַל אֵשֶׁת אָחִיו”.
[If there were] three brothers, [and] two of them were married to two sisters, while one was unmarried; [if] the husband of one of the sisters died, and the unmarried one performed maamar with her, and then his second brother died —- Beis Shammai say: His wife [remains] with him, while the other is discharged as his wife's sister; but Beis Hillel say: He must send away his wife with [both] a divorce and chalitzah, and his brother's wife with chalitzah. About this it was said, “Woe unto him concerning his wife, and woe unto him concerning his brother's wife.”
Yevamos3: 6
שְׁלֹשָׁה אַחִין, שְׁנַיִם מֵהֶן נְשׂוּאִים שְׁתֵּי אֲחָיוֹת, וְאֶחָד נָשׂוּי נָכְרִית, מֵת אֶחָד מִבַּעֲלֵי אֲחָיוֹת, וְכָנַס נָשׂוּי נָכְרִית אֶת אִשְׁתּוֹ, וָמֵת — הָרִאשׁוֹנָה יוֹצְאָה מִשּׁוּם אֲחוֹת אִשָּׁה, וּשְׁנִיָּה מִשּׁוּם צָרָתָהּ. עָשָׂה בָהּ מַאֲמָר, וָמֵת — נָכְרִית חוֹלֶצֶת וְלֹא מִתְיַבֶּמֶת.  שְׁלֹשָׁה אַחִים, שְׁנַיִם מֵהֶם נְשׂוּאִים שְׁתֵּי אֲחָיוֹת, וְאֶחָד נָשׂוּי נָכְרִית, מֵת הַנָּשׂוּי נָכְרִית, וְכָנַס אֶחָד מִבַּעֲלֵי אֲחָיוֹת אֶת אִשְׁתּוֹ, וָמֵת — הָרִאשׁוֹנָה יוֹצְאָה מִשּׁוּם אֲחוֹת אִשָּׁה, וּשְׁנִיָּה מִשּׁוּם צָרָתָהּ. עָשָׂה בָהּ מַאֲמָר, וָמֵת — נָכְרִית חוֹלֶצֶת וְלֹא מִתְיַבֶּמֶת.
[If there were] three brothers, [and] two of them were married to two sisters, while one was married to a stranger; [if] the husband of one of the sisters died, and the one married to the stranger married his wife and [then] died —- the first one is discharged as [his] wife's sister, and the second as her co-wife. [If] he performed maamar with her and then died —- the stranger requires chalitzah but may not be taken in yibum.  [If there were] three brothers, [and] two of them were married to two sisters, while one was married to a stranger; [if] the one married to the stranger died, and the husband of one of the sisters married his wife and [then] died —- the first one is discharged as [his] wife's sister, and the second as her co-wife. [If] he performed maamar with her and then died —- the stranger requires chalitzah, but may not be taken in yibum.