The Shulchan Aruch · Orach Chayim
אורח חיים תרפ״וOrach Chayim 686
Siman 686 of 697 in Orach Chayim — 3 se'ifim
הלכות מגילהLaws of Purim· siman 686
Se’if 1א׳
בַּחֲנֻכָּה וּפוּרִים מֻתָּר לְהִתְעַנּוֹת לִפְנֵיהֶם וּלְאַחֲרֵיהֶם.
Laws of Fast of Esther. Contains 3 paragraph: One is allowed to fast the day before and after Chanukah and Purim.
Se’if 2ב׳
מִתְעַנִּים בְּי"ג בַּאֲדָר; וְאִם חָל פּוּרִים בְּאֶחָד בְּשַׁבָּת, מַקְדִּימִין לְהִתְעַנּוֹת בְּיוֹם חֲמִישִׁי. הַגָּה: וְתַעֲנִית זֶה אֵינוֹ חוֹבָה, לָכֵן יֵשׁ לְהָקֵל בּוֹ לְעֵת הַצֹּרֶךְ, כְּגוֹן: מְעֻבָּרוֹת אוֹ מֵינִיקוֹת אוֹ לְחוֹלֶה שֶׁאֵין בּוֹ סַכָּנָה, וַאֲפִלּוּ כּוֹאֲבֵי עֵינַיִם, שֶׁאִם מִצְטַעֲרִים הַרְבֵּה לֹא יִתְעַנּוּ וְיִפְרְעוּ אַחַר כָּךְ, אֲבָל שְׁאָר בְּרִיאִים לֹא יִפְרְשׁוּ מִן הַצִּבּוּר (חִדּוּשֵׁי אֲגֻדָּה בְּשֵׁם מַחֲזוֹר וִיטְרִי). וְאִם חָל פּוּרִים בְּיוֹם א', שֶׁמִּתְעַנִּין בְּיוֹם ה' שֶׁלְּפָנָיו, וְחָל בּוֹ בְּרִית מִילָה, מֻתָּר לֶאֱכֹל עַל הַמִּילָה, וּלְמָחָר בְּיוֹם ו' יִתְעַנּוּ הָאוֹכְלִים (הַגָּהוֹת מִנְהָגִים).
We fast on the 13th of Adar. And if Purim falls on Sunday, we start the fast on Thursday. Rema: This fast is not required, therefore you can be lenient for the time of the fast, for example: one who is pregnant, nursing, or not dangerously sick. And even if only you have pain in your eyes that is bothering you a lot - you shouldn't fast, and fast on a later day. But other people [who don't have these conditions] - they should not separate themselves from the rest of the congregation. And if Purim falls on Sunday, and the fast moves to the Thursday before, and it falls on a circumcision, you are allowed to eat for the circumcision, and the next day on Friday, those who ate should fast.
Se’if 3ג׳
יֵשׁ מִתְעַנִּים ג' יָמִים, זֵכֶר לְתַעֲנִית אֶסְתֵּר.
There are those who fast three days in remembrance of the fast of Esther.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0