Halacha 1א׳
מִצְוַת עֲשֵׂה מִן הַתּוֹרָה שֶׁיְּיַבֵּם אָדָם אֵשֶׁת אָחִיו מֵאָבִיו בֵּין מִן הַנִּשּׂוּאִין בֵּין מִן הָאֵרוּסִין אִם מֵת בְּלֹא זֶרַע שֶׁנֶּאֱמַר (דברים כה ה) ״וּבֵן אֵין לוֹ״ (דברים כה ה) ״יְבָמָהּ יָבֹא עָלֶיהָ״. וּמִן הַתּוֹרָה אֵין צָרִיךְ לְקַדֵּשׁ יְבִמְתּוֹ שֶׁזּוֹ אִשְׁתּוֹ הִיא שֶׁהִקְנוּ אוֹתָהּ לוֹ מִן הַשָּׁמַיִם אֶלָּא יָבוֹא עָלֶיהָ. וּכְתֻבָּתָהּ עַל נִכְסֵי בַּעְלָהּ שֶׁמֵּת:
It is a positive commandment of the Torah that a man take in levirate marriage the wife of his brother from his father, whether from marriage or from betrothal, if the brother died without offspring, as it is said (Deuteronomy 25:5), "and has no son," and (Deuteronomy 25:5), "her husband's brother shall come in to her." And by the Torah he need not betroth his sister-in-law awaiting levirate marriage, for she is his wife, whom Heaven has conveyed to him; rather he comes in to her. And her ketubah, the marriage settlement, is charged upon the property of her husband who died.
Halacha 2ב׳
לֹא רָצָה לְיַבֵּם אוֹ שֶׁלֹּא רָצְתָה הִיא. הֲרֵי זֶה חוֹלֵץ לָהּ וְאַחַר כָּךְ תִּהְיֶה מֻתֶּרֶת לְהִנָּשֵׂא לְאַחֵר. וּמִצְוַת עֲשֵׂה מִן הַתּוֹרָה לַחֲלֹץ אִם לֹא רָצָה לְיַבֵּם שֶׁנֶּאֱמַר (דברים כה ט) ״וְחָלְצָה נַעֲלוֹ״ וְגוֹ'. וּמִצְוַת יִבּוּם קוֹדֶמֶת לְמִצְוַת חֲלִיצָה:
If he did not wish to take her in levirate marriage, or she did not wish it, he performs chalitzah, the release from levirate marriage, for her, and afterwards she is permitted to be married to another. And it is a positive commandment of the Torah to perform chalitzah if he does not wish to take her in levirate marriage, as it is said (Deuteronomy 25:9), "and loose his shoe," and so forth. And the commandment of levirate marriage takes precedence over the commandment of chalitzah.
Halacha 3ג׳
זֶה שֶׁנֶּאֱמַר בַּתּוֹרָה (דברים כה ה) ״וּבֵן אֵין לוֹ״ אֶחָד הַבֵּן וְאֶחָד הַבַּת אוֹ זֶרַע הַבֵּן אוֹ זֶרַע הַבַּת הוֹאִיל וְיֵשׁ לוֹ זֶרַע מִכָּל מָקוֹם. וּבֵין מֵאִשָּׁה זוֹ בֵּין מֵאַחֶרֶת הֲרֵי זֶה פּוֹטֵר אֶת אִשְׁתּוֹ מִן הַחֲלִיצָה וּמִן הַיִּבּוּם. אֲפִלּוּ הָיָה לוֹ זֶרַע מַמְזֵר אוֹ עוֹבֵד עֲבוֹדָה זָרָה הֲרֵי זֶה פּוֹטֵר אֶת אִשְׁתּוֹ מִן הַחֲלִיצָה וּמִן הַיִּבּוּם:
That which is said in the Torah (Deuteronomy 25:5), "and has no son" — a son and a daughter are alike, or the offspring of a son or the offspring of a daughter, since he has offspring in any manner. And whether from this wife or from another, he exempts his wife from chalitzah and from levirate marriage. Even if he had offspring who was a mamzer, the offspring of a forbidden union, or an idolater, he exempts his wife from chalitzah and from levirate marriage.
Halacha 4ד׳
אֲבָל בְּנוֹ מִן הַשִּׁפְחָה וּמִן הַכּוּתִית אֵינוֹ פּוֹטֵר אֶת אִשְׁתּוֹ שֶׁזֶּרַע הַבָּא מִן הַשִּׁפְחָה עֲבָדִים וְהַבָּא מִן כּוּתִית כּוּתִי וּכְאִלּוּ אֵינָם. הֲרֵי הוּא אוֹמֵר בְּשִׁפְחָה (שמות כא ד) ״הָאִשָּׁה וִילָדֶיהָ תִּהְיֶה לַאדֹנֶיהָ״ מְלַמֵּד שֶׁוְּלָדָהּ כְּמוֹתָהּ. וּבְכוּתִית הוּא אוֹמֵר (דברים ז ד) ״כִּי יָסִיר אֶת בִּנְךָ מֵאַחֲרַי״ מֵסִיר אוֹתוֹ מִלֵּחָשֵׁב בַּקָּהָל. וְאַף עַל פִּי שֶׁנִּשְׁתַּחְרֵר בְּנוֹ מִן הַשִּׁפְחָה אוֹ נִתְגַּיֵּר בְּנוֹ מִן הַכּוּתִית הֲרֵי הֵן כִּשְׁאָר הַגֵּרִים וְהַמְשֻׁחְרָרִין וְאֵינָם פּוֹטְרִין אֶת אִשְׁתּוֹ. הֲרֵי שֶׁהָיָה לוֹ בֵּן מִן הַשִּׁפְחָה שֶׁלּוֹ וְשִׁחְרְרוֹ וְשִׁחְרְרָהּ וּנְשָׂאָהּ וּמֵת בְּלֹא זֶרַע הֲרֵי זוֹ תִּתְיַבֵּם לְאָחִיו וְאַף עַל פִּי שֶׁבְּנָהּ מִמֶּנּוּ קַיָּם שֶׁכְּבָר שִׁחְרְרוֹ:
But his son from a bondwoman or from a gentile woman does not exempt his wife, for the offspring born of a bondwoman are slaves, and that born of a gentile woman is a gentile, and they are as though they did not exist. Scripture says of the bondwoman (Exodus 21:4), "the wife and her children shall be her master's," which teaches that her child is as she is. And of the gentile woman it says (Deuteronomy 7:4), "For he will turn away your son from following Me," — it turns him away from being counted in the congregation. And even if his son from the bondwoman was set free, or his son from the gentile woman became a proselyte, they are as other proselytes and freedmen and do not exempt his wife. Thus, if he had a son from his own bondwoman, and he set him free, and set her free and married her, and died without offspring, she is taken in levirate marriage by his brother, even though her son from him is alive, since he had already set him free.
Halacha 5ה׳
מִי שֶׁמֵּת וְהִנִּיחַ אִשְׁתּוֹ מְעֻבֶּרֶת. אִם הִפִּילָה אַחַר מוֹתוֹ הֲרֵי זוֹ תִּתְיַבֵּם. וְאִם יָלְדָה וְיָצָא הַוָּלָד חַי לַאֲוִיר הָעוֹלָם אֲפִלּוּ מֵת בְּשָׁעָה שֶׁנּוֹלַד הֲרֵי אִמּוֹ פְּטוּרָה מִן הַחֲלִיצָה וּמִן הַיִּבּוּם. אֲבָל מִדִּבְרֵי סוֹפְרִים עַד שֶׁיִּוָּדַע בְּוַדַּאי שֶׁכָּלוּ לוֹ חֳדָשָׁיו וְנוֹלַד לְתִשְׁעָה חֳדָשִׁים גְּמוּרִים. אֲבָל אִם לֹא נוֹדַע לְכַמָּה נוֹלַד. אִם חַי שְׁלֹשִׁים יוֹם הֲרֵי זֶה וְלַד קַיָּמָא וּפוֹטֵר נְשֵׁי אָבִיו מִן הַחֲלִיצָה וּמִן הַיִּבּוּם. וְאִם מֵת בְּתוֹךְ הַשְּׁלֹשִׁים אֲפִלּוּ בְּיוֹם הַשְּׁלֹשִׁים בֵּין שֶׁמֵּת מֵחלִי בֵּין שֶׁנָּפַל מִן הַגַּג אוֹ אֲכָלוֹ אֲרִי הֲרֵי זֶה סָפֵק נֵפֶל סָפֵק בֶּן קַיָּמָא וּצְרִיכָה חֲלִיצָה מִדִּבְרֵי סוֹפְרִים. אֲבָל לֹא תִּתְיַבֵּם:
One who died and left his wife pregnant: if she miscarried after his death, she is taken in levirate marriage. And if she gave birth and the child came out alive into the air of the world, even if it died at the moment it was born, its mother is exempt from chalitzah and from levirate marriage. But by the words of the Scribes, not until it is known for certain that its months were complete and it was born at nine full months. But if it was not known at how many months it was born: if it lived 30 days, it is a viable child and exempts its father's wives from chalitzah and from levirate marriage; and if it died within the 30, even on the thirtieth day, whether it died of an illness or fell from the roof or a lion ate it, it is doubtfully a non-viable birth and doubtfully a viable child, and she needs chalitzah by the words of the Scribes, but she is not taken in levirate marriage.