Shulchan Aruch, Orach Chayim Siman 118

Siman 118

Presented here for study, not as a practical ruling. The Shulchan Aruch rules by Sephardi custom, the Rema's glosses by Ashkenazi custom, and the Kitzur follows Ashkenazi custom. For a practical question, ask your rabbi.

א הָשִׁיבָה שׁוֹפְטֵינוּ, חוֹתֵם בָּהּ מֶלֶךְ אוֹהֵב צְדָקָה וּמִשְׁפָּט; וּמֵרֹאשׁ הַשָּׁנָה וְעַד יוֹם הַכִּפּוּרִים חוֹתֵם הַמֶּלֶךְ הַמִּשְׁפָּט. הַגָּה: מִיהוּ אִם אָמַר מֶלֶךְ אוֹהֵב צְדָקָה וּמִשְׁפָּט, אֵין צָרִיךְ לַחֲזֹר, וְלֹא אָמְרוּ שֶׁיַּחֲזֹר אֶלָּא בְּמָקוֹם שֶׁכָּל הַשָּׁנָה אוֹמְרִים הָאֵל אוֹהֵב צְדָקָה וּמִשְׁפָּט (הר"י ספ"ק דִּבְרָכוֹת וְטוּר וְהַגָּהוֹת מִנְהָגִים), (וְע"ל סִימָן תקפ"ב).
1 The Conclusion of the "Hashiva" ["Restore"] Blessing. Containing 1 S'if: [The blessing of] "Hashiva Shofteinu" ["Restore our judges"] - one concludes it with [the words] "Melekh Ohev Tzedaka u'Mishpat" ["King, Lover of righteousness and justice"]. And between Rosh Hashana and Yom Kippur, one concludes with [the words] "Ha-Melekh Ha-Mishpat" ["The King of Justice"]. Rema: However, if one said "Melekh Ohev Tzedaka u'Mishpat", one does not have to go back. And they only said that one needs to go back, in a place where they say "Ha'keil Oheiv Tzedaka u'Mishpat" ["The God, Lover of righteousness and justice"] during the entire year. (The R"i in the end of first chapter of Tractate Berachot, and the Tur and Hagahot Maimoni) And see below in Siman 582