The Shulchan Aruch · Orach Chayim
אורח חיים שי״חOrach Chayim 318
Siman 318 of 697 in Orach Chayim — 19 se'ifim
הלכות שבתLaws of Shabbat· siman 318
Se’if 1א׳
הַמְבַשֵּׁל בְּשַׁבָּת, אוֹ שֶׁעָשָׂה אַחַת מִשְּׁאָר מְלָאכוֹת, (טוּר), בְּמֵזִיד, אָסוּר לוֹ לְעוֹלָם, וְלַאֲחֵרִים מֻתָּר לְמוֹצָאֵי שַׁבָּת מִיָּד; וּבְשׁוֹגֵג, אָסוּר בּוֹ בַּיּוֹם גַּם לַאֲחֵרִים, וְלָעֶרֶב מֻתָּר גַּם, לוֹ מִיָּד; וְאִם אָמַר לְעַכּוּ"ם לַעֲשׂוֹת מְלָאכָה בְּשַׁבָּת, עַיֵּן לְעֵיל סִימָן ש"ז סָעִיף כ'.
1. One who cooks food on Shabbos [or performs any one of the other forbidden acts on Shabbos][Tur]; if done intentionally, the food is forbidden to eat forever, but other people are permitted to eat the food immediately after Shabbos. If done accidentally the food is forbidden to him during the day but may be eaten by everyone, including him, immediately after Shabbos. [If one ordered a non-Jew to perform a Melacha for oneself on Shabbos, see above Siman 307 se’if 20].
Se’if 2ב׳
הַשּׁוֹחֵט בְּשַׁבָּת לְחוֹלֶה, בֵּין שֶׁחָלָה מֵאֶתְמוֹל בֵּין שֶׁחָלָה הַיּוֹם, מֻתָּר הַבָּרִיא לֶאֱכֹל מִמֶּנּוּ חַי בְּשַׁבָּת; אֲבָל הַמְבַשֵּׁל, אוֹ עָשָׂה שְׁאָר מְלָאכָה, לַחוֹלֶה, אָסוּר בְּשַׁבָּת לְבָרִיא אוֹ לְחוֹלֶה שֶׁאֵין בּוֹ סַכָּנָה, דְּחַיְישִׁינָן שֶׁמָּא יַרְבֶּה בִּשְׁבִילוֹ. הַגָּה: וַאֲפִלּוּ בִּשֵּׁל עַל יְדֵי עַכּוּ"ם, אָסוּר בְּשַׁבָּת. (תּוֹסָפוֹת פ"ק דְּגִטִּין וְרַ"ן פ' אֵין מַעֲמִידִין). וְאִם קָצַץ פֵּרוֹת מִן הַמְחֻבָּר לְחוֹלֶה בְּשַׁבָּת, אֲפִלּוּ הָיָה חוֹלֶה מִבְּעוֹד יוֹם, אָסוּר לְבָרִיא בְּשַׁבָּת מִשּׁוּם שֶׁגָּדֵל וְהוֹלֵךְ בְּשַׁבָּת וְיֵשׁ בּוֹ מִשּׁוּם מֻקְצֶה (בֵּית יוֹסֵף בְּשֵׁם א"ח).
2. A healthy person may eat raw meat (on Shabbos) from an animal slaughtered on Shabbos for the sake of a (critically) ill person, regardless of whether the person was ill before Shabbos or became ill on Shabbos. However, if one cooked food (or performed any other Melacha) for a (critically) ill person, it is forbidden (on Shabbos) for a healthy person or for an ill person (who is not critically ill) to eat that food, because we are afraid that additional food will be cooked for people other than the sick. RAMA: Even if a gentile cooked the food; it is forbidden to be eaten on Shabbos (by people other than the ill). (Tosefos, Ran). It is forbidden for a healthy person to eat fruit that was picked on Shabbos for the sake of the ill even if he was ill before Shabbos, because the fruit continues to grow on Shabbos and is Muktze. (Beis Yosef in the name of Orchot Chaim).
Se’if 3ג׳
כְּשֵׁם שֶׁאָסוּר לְבַשֵּׁל בְּאוּר כָּךְ אָסוּר לְבַשֵּׁל בְּתוֹלְדוֹת הָאוּר, כְּגוֹן: לִתֵּן בֵּיצָה בְּצַד קְדֵרָה אוֹ לְשָׁבְרָהּ עַל סוּדָר שֶׁהוּחַם בָּאוּר כְּדֵי שֶׁתִּצָּלֶה; וַאֲפִלּוּ בְּתוֹלְדוֹת חַמָּה, כְּגוֹן: בְּסוּדָר שֶׁהוּחַם בַּחַמָּה, אָסוּר גְּזֵרָה אָטוּ תּוֹלְדוֹת הָאוּר, וְכֵן (אָסוּר) לְהַטְמִינָהּ בְּחוֹל אוֹ בַּאֲבַק דְּרָכִים שֶׁהֻחַמּוּ מִכֹּחַ חַמָּה; אֲבָל בַּחַמָּה עַצְמָהּ, כְּגוֹן: לִתֵּן בֵּיצָה בַּחַמָּה אוֹ לִתֵּן מַיִם בַּחַמָּה כְּדֵי שֶׁיֻּחַמּוּ, מֻתָּר.
3. Just as it is forbidden to cook with fire, it is forbidden to cook with Toldas ha’ur (translation: Items that were on the fire), for example: to roast an egg by placing it beside a pot (hot from the fire), or to crack an egg over a garment heated on the fire. It is even forbidden to cook with Toldas hachama (translation: Items that were heated from the sun), for example: a garment hot from the sun, for fear that one will cook with Toldas ha’ur. It is also forbidden to place (the egg) inside sand or dust heated by the sun, but it is permitted in the sun itself, for example: to heat an egg by placing it in the sun, or to heat water by placing it in the sun.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0