166 Yevamot 13/9-10

(ט) מִי שֶׁהָיָה נָשׂוּי לִשְׁתֵּי יְתוֹמוֹת קְטַנּוֹת, וּמֵת, בָּא יָבָם עַל הָרִאשׁוֹנָה, וְחָזַר וּבָא עַל הַשְּׁנִיָּה, אוֹ שֶׁבָּא אָחִיו עַל הַשְּׁנִיָּה, לֹא פָסַל אֶת הָרִאשׁוֹנָה. וְכֵן שְׁתֵּי חֵרְשׁוֹת. קְטַנָּה וְחֵרֶשֶׁת, בָּא יָבָם עַל הַקְּטַנָּה, וְחָזַר וּבָא עַל הַחֵרֶשֶׁת, אוֹ שֶׁבָּא אָחִיו עַל הַחֵרֶשֶׁת, לֹא פָסַל אֶת הַקְּטַנָּה. בָּא יָבָם עַל הַחֵרֶשֶׁת, וְחָזַר וּבָא עַל הַקְּטַנָּה, אוֹ שֶׁבָּא אָחִיו עַל הַקְּטַנָּה, פָּסַל אֶת הַחֵרֶשֶׁת:

(י) פִּקַּחַת וְחֵרֶשֶׁת, בָּא יָבָם עַל הַפִּקַּחַת, וְחָזַר וּבָא עַל הַחֵרֶשֶׁת, אוֹ שֶׁבָּא אָחִיו עַל הַחֵרֶשֶׁת, לֹא פָסַל אֶת הַפִּקַּחַת. בָּא יָבָם עַל הַחֵרֶשֶׁת וְחָזַר וּבָא עַל הַפִּקַּחַת, אוֹ שֶׁבָּא אָחִיו עַל הַפִּקַּחַת, פָּסַל אֶת הַחֵרֶשֶׁת:

(9) [If] a man was married to two orphans who were minors and he died - [if] the Yavam had relations with the first one and then had relations with the second one, or [if] his [other] brother had relations with the second one, he has not disqualified the first one. [The law] is similar [in the case of] two deaf-mute women. [If a man is married to] a minor and a deaf mute [and dies] - [if] the Yavam had relations with the minor and then had relations with the deaf-mute, or [if] his [other] brother had relations with the deaf-mute, he has not disqualified the minor. [If] the Yavam had relations with the deaf-mute and then had relations with the minor, or [if] his [other] brother had relations with the minor, he has disqualified the deaf-mute.

(10) [If a man is married to] a hearing woman and a deaf-mute woman [and dies] - [if] the Yavam had relations with the hearing woman and then had relations with the deaf-mute, or [if] his [other] brother had relations with the deaf-mute, he has not disqualified the hearing woman. [If] the Yavam had relations with the deaf-mute and then had relations with the hearing woman, or [if] his [other] brother had relations with the hearing woman, he has disqualified the deaf-mute.