סימן קכז סעיף ג
מִי שֶׁהוּא רָגִיל לְהִתְעַנּוֹת בַּעֲשֶׂרֶת יְמֵי תְּשׁוּבָה אוֹ בְּיוֹם רִאשׁוֹן דִּסְלִיחוֹת וְעֶרֶב רֹאשׁ הַשָּׁנָה, אֵינוֹ צָרִיךְ לְקַבְּלָם, שֶׁהֵם מְקֻבָּלִים מִכֹּחַ הַמִּנְהָג. וְכֵן תַּעֲנִית חֲלוֹם, אֵינָהּ צָרִיךְ קַבָּלָה. וְכֵן תַּעֲנִית שֵׁנִי חֲמִישִּׁי וְשֵׁנִי שֶׁלְּאַחַר פֶּסַח וְסֻכּוֹת, אִם עָנָה אָמֵן אַחַר מִּי שֶׁבֵּרַךְ וְהָיָה דַּעְתּוֹ לְהִתְעַנּוֹת, דַּי בְּכָךְ וְאֵינוֹ צָרִיךְ קַבָּלָה אַחֶרֶת. וּמִכָּל מָקוֹם אִם מִתְחָרֵט וְאֵינוֹ רוֹצֶה לְהִתְעַנּוֹת, רַשַּׁאי, כֵּיוָן שֶׁלֹּא קִבֵּל עָלָיו בְּפֵרוּשׁ וְלֹא הוֹצִיא בְּפִיו שֶׁהוּא רוֹצֶה לְהִתְעַנּוֹת (תצב).
If you are accustomed to fast5This applies, even if this is the first time you are fasting on one of these days. So long as it is an accepted custom in your community, you may join and rely on those who have fasted. (Biyur Halachah 562:2) during the Aseres yemei teshuvah, [the Ten Days of Penitence] or on the first day of Selichos or on erev Rosh Hashanah, you do not have to make a formal commitment because they are accepted on the basis of the prevailing custom. Similarly, fasting because of a disturbing dream, does not require prior acceptance; neither do the fasts on Monday, Thursday and Monday following Pesach and Sukkos. If you answer Amein after the Mi shebeirach [a blessing for those who fast on these days] and you intended to fast, this is sufficient, and no other form of acceptance is needed. Nevertheless, if you change your mind, and do not wish to fast, you may [eat], since you did not expressly commit yourself6See Paragraph 4, and, accordingly, it would seem that it is best to be stringent, if you had in mind to fast when you answered Amein, even without a verbal commitment. (See Mishnah Berurah 562:39) and did not verbally declare that you intend to fast.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)