שולחן ערוך, אורח חיים תרכ״ג

Shulchan Arukh, Orach Chayim 623

סדר תפלת נעילה. ובו ו סעיפים:
לנעילה אומר אשרי וקדיש ואין אומר ובא לציון. הגה וכבר כתבתי דהמנהג במדינות אלו לומר אשרי ובא לציון קודם נעילה:
“The order of the Closing Prayer, Ne’ilah” - Containing six paragraphs.
For the Closing Service we say “אשרי” and Kaddish but we do not say “ובא לציון”.
Hagah: I have already written that the custom in these lands is to say “אשרי” and “ובא לציון” before the Closing Service.
זמן תפלת נעילה כשהחמה בראש האילנות כדי שישלים אותה סמוך לשקיעת החמה וצריך ש"ץ לקצר בסליחות ופסוקים שבאמצע התפלה וגם אין לו למשוך בתפלת נעילה כל תיבה ותיבה כדרך שמושך בשאר תפלו' כדי שיגמור קודם שקיעת החמה (ואומר במקום כתבנו חתמנו) (טור):
The time for the Closing Service is when the sun is just on the tops of the trees so that it can be completed close to the setting of the sun, and the reader needs to shorten the prayers of forgiveness and the verses in the middle of the Tefillah and he must not lengthen in the Closing Prayer every word as he lengthens them in the rest of the prayers, so that he will finish before the sun sets, (and he says instead of “inscribe us (in the “Book of Life”)”, “seal us (in the “Book of Life”)”), (טור).
אם חל בשבת מזכיר בה של שבת אבל בוידוי שלאחר התפלה אין מזכירין בו של שבת והני מילי יחיד אבל שליח צבור כיון שאמרו בתוך תפלתו מזכיר בו של שבת ואם לא הזכיר בזה אין מחזירין אותו:
If (the Ne’ilah Prayer) falls on the Sabbath, we remember in it the Sabbath in the prayer (meaning, we mention it), but in the confession which is after the Silent Prayer we do not mention the Sabbath. This refers to the individual worshipper, but the reader, since he said it in the midst of his Silent Prayer, he mentions the Sabbath in it (even when repeating the Prayer outloud). If he does not mention it (the Sabbath) they do not make him return and repeat it.
אומר כתר כמו במוסף:
He says “כתר”, “the crown”, just as in the Additional Service.
נושאים כפים בנעילה (והמנהג במדינות אלו שלא לישא כפיו ואומרים אבינו מלכנו):
They give the priestly benediction during the Closing Service. (The custom in these lands is not to give the priestly benediction, but we say “אבינו מלכנו”.)
בסוף הסליחות אומרים ז' פעמים ה' הוא האלהים: (ופעם אחת שמע ישראל וג' פעמים בשכמל"ו (מנהגים) וע"ל סי' ס"א) ותוקעין תשר"ת: הגה וי"א שאין לתקוע רק תקיעה אחת (מרדכי והגהות מיימוני סוף הלכות י"כ ואגור) וכן נוהגין במדינות אלו ותוקעין לאחר שאמר קדיש לאחר נעילה וקצת מקומות נהגו לתקוע קודם קדיש:
At the end of the prayers of forgiveness we say seven times, “He is the God,” (and one time the “שמע ישראל”), and three times the, “Blessed be His glorious kingdom forever and ever,” (see above section 61, (מנהגים).) and we blow the shofar, (תקיעה, שברים, תרועה, תקיעה).
Hagah: There are those who say that we only blow the shofar once (תקיעה), (מרדכ והגהות מיימוני סוף הלכות ואגור י״כ), and thus we do it in these lands, we sound the shofar after we say the Kaddish after the Closing Service, but in a few places the custom is to blow the shofar before the Kaddish.

Maginei Eretz: Shulchan Aruch Orach Chaim, Lemberg, 1893 (Public Domain) · Hilkhot Yom ha-Kippurim, trans. by Jan M. Brahms. HUC, 1976 (CC-BY) · 6 se'ifim