תַּנְיָא נָמֵי הָכִי: הַמִּתְפַּלֵּל, צָרִיךְ שֶׁיַּפְסִיעַ שָׁלֹשׁ פְּסִיעוֹת לַאֲחוֹרָיו וְאַחַר כָּךְ יִתֵּן שָׁלוֹם, וְאִם לֹא עָשָׂה כֵּן רָאוּי לוֹ שֶׁלֹּא הִתְפַּלֵּל. וּמִשּׁוּם שְׁמַעְיָה אָמְרוּ: שֶׁנּוֹתֵן שָׁלוֹם לְיָמִין, וְאַחַר כָּךְ לִשְׂמֹאל, שֶׁנֶּאֱמַר: ״מִימִינוֹ אֵשׁ דָּת לָמוֹ״, וְאוֹמֵר: ״יִפּוֹל מִצִּדְּךָ אֶלֶף וּרְבָבָה מִימִינֶךָ״.
The Gemara comments that this was also taught in a baraita: One who prays must take three steps backward upon concluding his prayer and then recite: Peace. And if he did not do so, it is better for him not to have prayed, as his actions are disrespectful toward God. And they said in the name of Shemaya the Sage that when one recites: Peace, he first bows to the right and then to the left, as it is stated: “At His right hand was a fiery law to them” (Deuteronomy 33:2), and it says: “A thousand may fall at your side, and ten thousand at your right side” (Psalms 91:7).
אֶלָּא, יְצַעֵר אָדָם עִם הַצִּבּוּר, שֶׁכֵּן מָצִינוּ בְּמֹשֶׁה רַבֵּינוּ שֶׁצִּיעֵר עַצְמוֹ עִם הַצִּבּוּר, שֶׁנֶּאֱמַר: ״וִידֵי מֹשֶׁה כְּבֵדִים וַיִּקְחוּ אֶבֶן וַיָּשִׂימוּ תַחְתָּיו וַיֵּשֶׁב עָלֶיהָ״, וְכִי לֹא הָיָה לוֹ לְמֹשֶׁה כַּר אֶחָד אוֹ כֶּסֶת אַחַת לֵישֵׁב עָלֶיהָ? אֶלָּא כָּךְ אָמַר מֹשֶׁה: הוֹאִיל וְיִשְׂרָאֵל שְׁרוּיִין בְּצַעַר — אַף אֲנִי אֶהְיֶה עִמָּהֶם בְּצַעַר. וְכׇל הַמְצַעֵר עַצְמוֹ עִם הַצִּבּוּר — זוֹכֶה וְרוֹאֶה בְּנֶחָמַת צִבּוּר. וְשֶׁמָּא יֹאמַר אָדָם: מִי מֵעִיד בִּי? אַבְנֵי בֵיתוֹ שֶׁל אָדָם וְקוֹרוֹת בֵּיתוֹ שֶׁל אָדָם מְעִידִים בּוֹ, שֶׁנֶּאֱמַר: ״כִּי אֶבֶן מִקִּיר תִּזְעָק וְכָפִיס מֵעֵץ יַעֲנֶנָּה״. דְּבֵי רַבִּי שֵׁילָא אָמְרִי: שְׁנֵי מַלְאֲכֵי הַשָּׁרֵת הַמְלַוִּין לוֹ לָאָדָם, הֵן מְעִידִין עָלָיו, שֶׁנֶּאֱמַר: ״כִּי מַלְאָכָיו יְצַוֶּה לָּךְ״.
The baraita continues: Rather, a person should be distressed together with the community. As we found with Moses our teacher that he was distressed together with the community, as it is stated during the war with Amalek: “But Moses’ hands were heavy; and they took a stone, and put it under him, and he sat upon it” (Exodus 17:12). But didn’t Moses have one pillow or one cushion to sit upon; why was he forced to sit on a rock? Rather, Moses said as follows: Since the Jewish people are immersed in suffering, I too will be with them in suffering, as much as I am able, although I am not participating in the fighting. The baraita adds: And anyone who is distressed together with the community will merit seeing the consolation of the community. The baraita further states: And lest a person say, I have acted in secret; who will testify against me on the Day of Judgment? The tanna explains that the stones of a person’s house and the beams of a person’s house will testify against him, as it is stated: “For a stone shall cry out from the wall, and a beam out of the timber shall answer it” (Habakkuk 2:11). In the school of Rabbi Sheila they say: The two ministering angels who accompany a person will testify against him, as it is stated: “For He will give His angels charge over you, to keep you in all your ways” (Psalms 91:11).