סימן צב סעיף י
מִי שֶׁרוֹצִים לֶאֱנֹס אוֹתוֹ שֶׁיַּעֲבֹר עֲבֵרָה לְפִי שָׁעָה, אֲפִלּוּ הִיא עֲבֵרָה חֲמוּרָה, אֵין מְחַלְּלִין עָלָיו שַׁבָּת, כְּדֵי לְהַצִּילוֹ מִן הָעֲבֵרָה. אֲבָל אִם רוֹצִים לֶאֱנֹס אוֹתוֹ לְהָמִיר אֶת הַדָּת וּלְהוֹצִיאוֹ מִכְּלַל יִשְֹרָאֵל אֲפִלּוּ הוּא קָטָן אוֹ קְטַנָּה הַחִיּוּב הוּא עַל כָּל מִי שֶׁבְּיָדוֹ לְהִשְׁתַּדֵּל לְהַצִּילוֹ, אֲפִלּוּ צָרִיךְ לְחַלֵּל שַׁבָּת בְּאִסּוּרֵי דְּאוֹרָיְתָא, כְּמוֹ שֶׁמְחֻיָּבִין לְחַלֵּל שַׁבָּת בִּשְׁבִיל חוֹלֶה שֶׁיֵּשׁ בּוֹ סַכָּנָה, דִּכְתִיב וְשָׁמְרוּ בְּנֵי יִשְֹרָאֵל אֶת הַשַׁבָּת, אָמְרָה תּוֹרָה, חַלֵּל עָלָיו שַׁבָּת אַחַת כְּדֵי שֶׁיִּשְׁמוֹר שַׁבָּתוֹת הַרְבֵּה. וַאֲפִלּוּ אִם הוּא סָפֵק אִם תּוֹעִיל הַהִשְׁתַּדְלוּת אוֹ לֹא, מִכָּל מָקוֹם חַיָּבִין לְחַלֵּל שַׁבָּת לְהִשְׁתַּדֵּל בְּכָל מַה דְּאֶפְשָׁר, כְּמוֹ שֶׁמְחַלְּלִין בִּשְׁבִיל סְפֵק פִּקּוּחַ נֶפֶשׁ. אֲבָל מִי שֶׁפָּשַׁע וְרוֹצֶה לְהָמִיר, אֵין מְחַלְּלִין עָלָיו אֶת הַשַׁבָּת בְּאִסּוּר דְּאוֹרָיְתָא, דְּכֵיוָן שֶׁפָּשַׁע, אֵין אוֹמְרִים לְאָדָם חֲטָא בִּשְׁבִיל שֶׁיִּזְכֶּה חֲבֵרֶךָ. וּמִכָּל מָקוֹם בְּאִסּוּר דְּרַבָּנָן, כְּגוֹן לָלֶכֶת חוּץ לַתְּחוּם וְלִרְכּוֹב עַל גַּבֵּי סוּס אוֹ לֵילֵךְ בַּעֲגָלָה, וְכֵן לְטַלְטֵל מָעוֹת וְכַדּוֹמֶה, יֵשׁ מַתִּירִין לְחַלֵּל בִשְׁבִיל לְהַצִּילוֹ (ש"ו).
If one is being forced to transgress even a serious sin for the moment,26Even idolatry. Where there is a possibility that he may be willing to die rather than transgress, it is obligatory to violate Shabbos to save him. [Mishnah Berurah 328: 31] the Shabbos should not be violated in order to save him from committing the transgression. But, if he is being forced to convert and to leave the fold of the Jewish people, even if he is a minor, it is obligatory to exert all effort to save him, even if it is necessary to violate Shabbos by [transgressing] a d'oraisa prohibition,27Concerning a minor, the author accepts the ruling of Eliyahu Rabba, as does the Mishnah Berurah. Chayei Adam (68: 13), however, allows violating only d’rabanan prohibitions. just as it is obligatory to violate Shabbos for someone who is critically ill; for it is written:28Exodus 31: 16. "The people of Yisrael shall keep the Shabbos." The Torah tells us: Violate one Shabbos for his sake so that he may keep many Shabbosos. Even where it is doubtful whether the intervention will succeed or not, nevertheless it is obligatory to violate Shabbos and attempt to do whatever is possible, just as we violate [Shabbos] for a possible life-threatening situation. However, one who is faithless and wants to convert, Shabbos must not be violated for him [by doing] a d'oraisa prohibition, because since he is at fault, we do not say to anyone: "Sin for the benefit of your friend." Nevertheless, when it involves a d'rabanan prohibition, such as walking beyond the techum, or to ride a horse, or to ride on a wagon, as well as handling money; according to some poskim it is permissible to violate Shabbos to save him.29Eliyahu Rabba, Peri Megadim, Mishnah Berurah 306: 56. Magein Avraham (254) disagrees.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)