(ו) הָאִשָּׁה שֶׁהִיא מַקְשָׁה לֵילֵד, מְחַתְּכִין אֶת הַוָּלָד בְּמֵעֶיהָ וּמוֹצִיאִין אוֹתוֹ אֵבָרִים אֵבָרִים, מִפְּנֵי שֶׁחַיֶּיהָ קוֹדְמִין לְחַיָּיו. יָצָא רֻבּוֹ, אֵין נוֹגְעִין בּוֹ, שֶׁאֵין דּוֹחִין נֶפֶשׁ מִפְּנֵי נָפֶשׁ:
(6) If a woman is having trouble giving birth, they cut up the child in her womb and brings it forth limb by limb, because her life comes before the life of [the child]. But if the greater part has come out, one may not touch it, for one may not set aside one person's life for that of another.
(ט) אַף זוֹ מִצְוַת לֹא תַּעֲשֶׂה שֶׁלֹּא לָחוּס עַל נֶפֶשׁ הָרוֹדֵף. לְפִיכָךְ הוֹרוּ חֲכָמִים שֶׁהָעֻבָּרָה שֶׁהִיא מַקְשָׁה לֵילֵד מֻתָּר לַחְתֹּךְ הָעֵבָּר בְּמֵעֶיהָ בֵּין בְּסַם בֵּין בְּיָד מִפְּנֵי שֶׁהוּא כְּרוֹדֵף אַחֲרֶיהָ לְהָרְגָהּ. וְאִם מִשֶּׁהוֹצִיא רֹאשׁוֹ אֵין נוֹגְעִין בּוֹ שֶׁאֵין דּוֹחִין נֶפֶשׁ מִפְּנֵי נֶפֶשׁ וְזֶהוּ טִבְעוֹ שֶׁל עוֹלָם:
Behold it is a negative prohibition to have mercy on the pursuer. Therefore, the Sages have ruled if there is a pregnant woman who is in travail in childbirth, that it is permissible to dismember the fetus in her womb, whether by medicinal means or whether surgically, because it is as if he is pursuing her life. However, once the fetus’ head has emerged, one may not lay a hand on it (to abort it), because one cannot override one life to save another, and this is the way of the world.
Therefore, a pregnant woman who is in travail in childbirth is permitted to cut up the fetus in her belly, whether through drugs or by hand, because the fetus is like a pursuer coming after her to kill her. If the fetus' head emerged you cannot touch him, as we don't prioritize one life above another.
