סימן סט סעיף ז
מִי שֶׁבָּא לְבֵית הַכְּנֶסֶת וּמָצָא צִבּוּר מִתְפַּלְּלִין שְׁמֹנֶה עֶשְׂרֵה, מִתְפַּלֵּל עִמָּהֶם שְׁמֹנֶה עֶשְׂרֵה וְיֹאמַר אַשְׁרֵי לְאַחַר הַשְּׁמֹנֶה עֶשְׂרֵה. וְאִם לֹא יוּכַל לִגְמוֹר שְׁמֹנֶה עֶשְׂרֵה, קֹדֶם שֶׁיָּבֹא שְּׁלִיחַ הַצִבּוּר לִקְדֻשָּׁה, וְאִם יַמְתִּין עַד לְאַחַר שֶׁיִּגְמוֹר שְּׁלִיחַ הַצִבּוּר כָּל הַשְּׁמֹנֶה עֶשְׂרֵה עִם הַקַּדִּישׁ, יַעֲבוֹר זְמַן הַתְּפִלָּה, יַמְתִּין וְיִתְפַּלֵּל בְּלַחַשׁ עִם שְּׁלִיחַ הַצִבּוּר בַּחֲזָרַת הַתְּפִלָּה מִלָּה בְּמִלָּה, וְאוּמֵר עִמּוֹ כָּל נֹסַח הַקְּדֻשָּׁה, וְגַם לְדוֹר וָדוֹר וְכוּ', כְּמוֹ שֶׁהוּא אוֹמֵר, וִיסַיֵּם עִמּוֹ בְּשָׁוֶה בִּרְכַּת הָאֵל הַקָּדוֹשׁ וּבִרְכַּת שׁוֹמֵעַ תְּפִלָּה. וְגַם מוֹדִים יֹאמַר בְּשָׁוֶה, כְּדֵי שֶׁיִּשְׂחֶה עִם הַצִּבּוּר. רַק בְּיוֹם תַּעֲנִית צִבּוּר, לֹא יֹאמַר עִם שְּׁלִיחַ הַצִבּוּר עֲנֵנוּ, אֶלָּא אוֹמְרוֹ בְּשׁוֹמֵעַ תְּפִלָּה, כְּמוֹ שְׁאָר יָחִיד. וְכֵן אִם רוֹצֶה לְהִתְפַּלֵּל מַעֲרִיב עִם הַצִּבּוּר, וְאִם יַמְתִּין עַד אַחַר חֲזָרַת שְּׁלִיחַ הַצִבּוּר אֶת הַתְּפִלָּה יִצְטָרֵךְ לְהִתְפַּלֵּל עַרְבִית בִּיחִידוּת יִתְפַּלֵּל מִנְחָה עִם חֲזָרַת הַשְּׁלִיחַ צִבּוּר, וְאִם בָּא סָמוּךְ לִקְדֻשָּׁה יַמְתִּין עַד לְאַחַר שֶׁיֹּאמַר שְּׁלִיחַ הַצִבּוּר הָאֵל הַקָּדוֹשׁ, וְיַעֲנֶה אָמֵן, וְאָז יִתְפַּלֵּל. וְאַף שֶׁיַּפְסִיד עֲנִיַּת אָמֵן שֶׁלְּאַחַר שׁוֹמֵעַ תְּפִלָּה וְגַם מוֹדִים (שֶׁהֵם חִיּוּבִים), מִכָּל מָקוֹם הָכִי עָדִיף טְפֵי, מִלְּהַפְסִיד תְּפִלַּת עַרְבִית עִם הַצִּבּוּר, וּמִכָּל שֶׁכֵּן, אִם הַשָּׁעָה עוֹבֶרֶת מִזְּמַן מִנְחָה (וְעַיֵּן לְעֵיל סִימָן כ' סָעִיף י"א).
If you come to the synagogue and find the congregation praying Shemoneh Esrei, you should pray the Shemoneh Esrei along with them and say Ashrei after Shemoneh Esrei. If you will be unable to complete the Shemoneh Esrei13I.e., if you begin the Shemoneh Esrei when the chazzan repeats the Shemoneh Esrei aloud. before the chazzan reaches kedushah, and if you wait until after the chazzan completes the entire Shemoneh Esrei as well as the Kaddish,14I.e., the Kaddish tiskabeil which follows the Shemoneh Esrei. the time for [the Minchah] prayer will pass, [then] you should wait and pray silently along with the chazzan when he repeats the Shemoneh Esrei, word for word, and say the entire Kedushah text along with him, as well as ledor vador, etc., just as he (i.e. the chazzan) says. You should complete the berachah Ha'el hakadosh and the berachah Shomei'a tefillah together with him.15The obligation to respond Amein after Ha’el hakadosh and Shomei’a tefillah are equivalent to Kedushah (see Chapter 20 para. 11). Modim, too, should be said together with him, so that you can bow along with the congregation. However, on a public fast day,16When the prayer Aneinu is said by the chazzan before Refa’einu and during Shomei’a tefillah by each individual. you should not say Aneinu with the chazzan. but recite it during Shemei'a tefillah, as [would] any other individual. Similarly, if you want to pray Maariv together with the congregation,17And you have not yet prayed Minchah. but if you wait [to pray Minchah] until after the chazzan [completes] the repetition of the Shemoneh Esrei, you would be compelled to pray Maariv alone, then you should pray Minchah along with the repetition of the chazzan. If you arrived just before Kedushah, you should wait until after the chazzan says Ha'el hakadosh, answer Amein and, then, pray [Minchah]. Although you will miss answering Amein following Shomei'a tefillah, as well as Modim, which are obligatory, nevertheless, it is preferable [to miss the responses] than to miss the chance of praying Maariv with the congregation. And certainly you should do so, if the time for Minchah is elapsing.18I.e., where waiting for the chazzan to finish the Shemoneh Esrei will make it too late for Minchah. (See above Chapter 20, para. 11.)
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)