סימן קב סעיף א
יוֹם טוֹב שֶׁחָל לִהְיוֹת בְּעֶרֶב שַׁבָּת, אָסוּר לֶאֱפוֹת אוֹ לְבַשֵּׁל בִּקְדֵרָה מְיֻחֶדֶת לַשַׁבָּת, אֶלָּא עַל יְדֵי עֵרוּב תַּבְשִׁילִין, שֶׁעוֹשֶׂה בְּעֶרֶב יוֹם טוֹב, דְּהַינוּ שֶׁלּוֹקֵחַ אֵיזֶה תַּבְשִׁיל אוֹ צָלִי שֶׁרָאוּי לְלַפֵּת בּוֹ אֶת הַפַּת, וְגַם פַּת, וּמְבָרֵךְ אֲשֶׁר קִדְּשָׁנוּ בְּמִצְוֹתָיו וְצִוָּנוּ עַל מִצְוַת עֵרוּב. וְאוֹמֵר, בַּהֲדֵין עֵרוּבָא יְהֵא שָׁרֵא לָנָא לַאֲפוּיֵי, וּלְבַשּׁוּלֵי, וּלְאַטְמוּנֵי, וּלְאַדְלוּקֵי שְׁרָגָא, וּלְמֶעְבַּד כָּל צָרְכָּנָא מִיּוֹמָא טָבָא לְשַׁבַּתָּא. וְאִם אֵינוֹ מֵבִין לָשׁוֹן זֹה, יֹאמַר בְּלָשׁוֹן שֶׁהוּא מֵבִין, [בְּעֵרוּב זֶה יְהֵא מֻתָּר לָנוּ לֶאֱפוֹת וּלְבַשֵׁל וּלְהַטְמִין וּלְהַדְלִיק נֵר וְלַעֲשׂוֹת כָּל צָרְכֵנוּ מִיּוֹם טוֹב לַשַׁבָּת]. (דוּרךְ דִיזֶען עֵירוּב זַייא אוּנְז עֶרְלוֹיבְּט צוּ בַּאקֶען צוּ קָאכֶען. דִי שְׁפֵּייזֶע ווַארֶם צוּ עֶרְהַאלְטֶען. לִיכְטֶער אָנְצוּצִינְדֶען, אוּנְד אִיבֶּערְהוֹיפְּט אַללֶעס נֶעטְהִיגֶע פָאן יוֹם טוֹב אוֹיף שַׁבָּת צוּ פֶערְרִיכְטֶען)
When Yom Tov occurs on Friday, it is forbidden to bake or cook in a separate pot for Shabbos, unless you make an eiruv tavshilin on erev Yom Tov.1Even at twilight. (Ramah 527:1) After the congregation says Barechu at Maariv, you may no longer make an eiruv, even if it is not yet dark. (Magein Avraham, Derech Hachaim) In an urgent situation, you may make the eiruv until the congregation says the Yom Tov Shemoneh Esrei, according to the ruling of the Taz. (Chayei Adam, Mishnah Berurah 527:4) If you, accepted the holiness of Yom Tov, on your own, some hold that you may still make an eiruv. (see Mishnah Berurah and Sha’ar Hatziyun 527:9) 2This is preferable, but it also helps if you made it many days before, in which case you should still recite the declaration at the end of this paragraph (without a berachah). (Taz, Magein Avraham 527:13) This is done as follows: Take some cooked or roasted food that is eaten with bread, and take bread with it,3You only need to take bread if you wish to bake for Shabbos. (Beis Yosef, Vilna Gaon, Mishnah Berurah 527:6) In any event, if you only used a cooked food for your eiruv, it is sufficient. (Shulchan Aruch 527:2) and recite the berachah Asher kideshanu bemitzvosav ["Who has sanctified us with the commandments] vetzivanu al mitzvas eiruv. ["and commanded us concerning the mitzvah of eiruv."] And declare: "By means of this eiruv it will be permissible for us to bake, cook, keep food warm, kindle a light and do anything necessary on Yom Tov for the sake of Shabbos." If you do not understand this language, you should say it in the language you understand.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)