The Shulchan Aruch · Orach Chayim
אורח חיים תרכ״גOrach Chayim 623
Siman 623 of 697 in Orach Chayim — 6 se'ifim
הלכות יום הכיפוריםLaws of Yom Kippur· siman 623
Se’if 1א׳
לִנְעִילָה אוֹמֵר: אַשְׁרֵי, וְקַדִּישׁ, וְאֵינוֹ אוֹמֵר: וּבָא לְצִיּוֹן; הַגָּה: וּכְבָר כָּתַבְתִּי דְּהַמִּנְהָג בִּמְדִינוֹת אֵלּוּ לוֹמַר: אַשְׁרֵי, וּבָא לְצִיּוֹן, קֹדֶם נְעִילָה.
At the closing prayer he says Ashrei (the psalm "Happy are they who dwell in Your house") and Kaddish, and does not say "And a redeemer shall come to Zion". Hagah [Rema]: And I have already written that the custom in these lands is to say Ashrei and "And a redeemer shall come to Zion" before the closing prayer.
Se’if 2ב׳
זְמַן תְּפִלַּת נְעִילָה כְּשֶׁהַחַמָּה בְּרֹאשׁ הָאִילָנוֹת, כְּדֵי שֶׁיַּשְׁלִים אוֹתָהּ סָמוּךְ לִשְׁקִיעַת הַחַמָּה; וְצָרִיךְ שְׁלִיחַ צִבּוּר לְקַצֵּר בַּסְלִיחוֹת וּפְסוּקִים שֶׁבְּאֶמְצַע הַתְּפִלָּה, וְגַם אֵין לוֹ לִמְשֹׁךְ בִּתְפִלַּת נְעִילָה כָּל תֵּבָה וְתֵבָה כְּדֶרֶךְ שֶׁמּוֹשֵׁךְ בִּשְׁאָר תְּפִלּוֹת, כְּדֵי שֶׁיִּגְמֹר קֹדֶם שְׁקִיעַת הַחַמָּה וְאוֹמֵר בִּמְקוֹם כָּתְבֵנוּ, חָתְמֵנוּ (טוּר).
The time of the closing prayer is when the sun is at the tops of the trees, so that he will complete it close to sunset; and the prayer leader must be brief in the penitential prayers and the verses that are in the middle of the prayer, and also he should not draw out each and every word in the closing prayer the way he draws them out in other prayers, so that he will finish before sunset; and he says "seal us" in place of "write us" (Tur).
Se’if 3ג׳
אִם חָל בְּשַׁבָּת, מַזְכִּיר בָּהּ שֶׁל שַׁבָּת; אֲבָל בַּוִּדּוּי שֶׁלְּאַחַר הַתְּפִלָּה אֵין מַזְכִּירִים בּוֹ שֶׁל שַׁבָּת; וְהָנֵי מִלֵּי יָחִיד, אֲבָל שְׁלִיחַ צִבּוּר, כֵּיוָן שֶׁאֲמָרוֹ בְּתוֹךְ תְּפִלָּתוֹ, מַזְכִּיר בּוֹ שֶׁל שַׁבָּת; וְאִם לֹא הִזְכִּיר, בְּזֶה אֵין מַחֲזִירִין אוֹתוֹ.
If it falls on the Sabbath, he mentions the Sabbath in it; but in the confession after the prayer they do not mention the Sabbath. And these words apply to an individual; but the prayer leader, since he says it within his prayer, mentions the Sabbath in it; and if he did not mention it, in this case they do not make him go back.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0
English rendered from the Hebrew for this app — The Gematria's own rendering program. A rendering of the words, not a ruling; practical halacha is learned with a rav