סימן קכא סעיף א
מִצְוַת עֲשֵׂה מִדִּבְרֵי הַנְּבִיאִים לְהִתְעַנּוֹת בַּיָּמִים שֶׁאֵרְעוּ צָרוֹת לַאֲבוֹתֵינוּ. וְתַכְלִית הַתַּעֲנִית הִיא, כְּדֵי לְעוֹרֵר אֶת הַלְּבָבוֹת לְפַקֵּחַ עַל דַּרְכֵי הַתְּשׁוּבָה, וּתְהִי זֹאת זִכָּרוֹן לְמַעֲשֵׂינוּ הָרָעִים, וּמַעֲשֵׂ אֲבוֹתֵינוּ שֶׁהָיוּ כְּמַעֲשֵׂינוּ עַתָּה, עַד שֶׁגָּרַם לָהֶם וְלָנוּ אוֹתָן הַצָּרוֹת. וּבְזִכְרוֹן הַדְּבָרִים הָאֵלֶּה, נָשׁוּב לְהֵיטִיב, כְּמוֹ שֶׁנֶּאֱמַר וְהִתְוַדּוּ אֶת עֲוֹנָם וְאֶת אֲבוֹתָם. וְלָכֵן חַיָּב כָּל אִישׁ לָשׂוּם אֶל לִבּוֹ בְּאוֹתָן הַיָּמִים וּלְפַשְׁפֵּשׁ בְּמַעֲשָׂיו וְלָשׁוּב מֵהֶן, כִּי אֵין הָעִקָּר בְּתַעֲנִית, כְּמוֹ שֶנֶּאֱמַר בְּאַנְשֵׁי נִינְוֵה, וַיַרְא הָאֱלֹהִים אֶת מַעֲשֵֹיהֶם, וְאָמְרוּ רַבּוֹתֵינוּ זִכְרוֹנָם לִבְרָכָה, וַיַרְא אֶת שַׂקָּם וְאֶת תַּעֲנִיתָם לֹא נֶאֱמַר, אֶלָּא וַיַּרְא הָאֱלֹהִים אֶת מַעֲשֵׂיהֶם כִּי שָׁבוּ מִדַּרְכָּם הָרָעָה. וְאֵין הַתַּעֲנִית אֶלָּא הֲכָנָה לִתְשׁוּבָה. לָכֵן אוֹתָן אֲנָשִׁים שֶׁכְּשֶׁמִּתְעַנִּים הוֹלְכִים בְּטִיּוּל וּמְבַלִּים אֶת הַיּוֹם בִּדְבָרִים בְּטֵלִים, תָּפְסוּ אֶת הַטָּפֵל וְהִנִּיחוּ אֶת הָעִקָּר.
It is a positive commandment, ordained by the Prophets, to fast on those days on which tragic events occurred to our forefathers. The purpose of the fast is to stir our hearts to reflect on the ways of repentance, and to serve as a reminder of our own evil deeds,and the deeds of our forefathers, which were as reprehensible as ours, and caused all these troubles for them as well as for us. By remembering these events we will improve our ways, as it has been said, "They will then confess their sins and the sins of their fathers" (Leviticus 26:4). Therefore, it is everyone's duty to take it to heart on those days to examine his past actions and to repent; for fasting is not the main thing, as it was said about the people of Nineveh, "And God saw their deeds" (Jonah 3:10), and our Rabbis, of blessed memory, have said, "It does not say, 'He saw their sackcloth and their fast,' but 'God saw their deeds, that they had turned away from their evil ways.'" Fasting is only a preparation for repentance. Therefore those who while fasting, spend the time taking walks, and doing trivial things, take hold of the least important aspect of the fast, while ignoring the essence [of the fast.]
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)