The Beis Yosef cites Orchos Chaim: The custom is to conclude Pesukei DeZimra with Shiras HaYam because it... · לב אהרן - שמות
לב אהרן - שמותובבית יוסף שם בשם ארחות חיים (סימן לב) זה לשונו, מה שנהגו לסיים פסוקי דזמרה בשירת הים, לפי שיש ע"ב אותיות של קדושה, שמונה עשר פעמים שם בן ארבעה אותיות, לבד משם "מקדש ה'" (טו, יז) שהוא בא"ד, שעולים ע"ב אותיות, כנגד ע"ב שמות. אבל לא תמצאם בגוף השירה, אבל הם בכל הפסוקים שלמעלה, מן "ויהי באשמורת הבֺקר" (יד, כד). ולפי שאין אנו נוהגים להתחיל רק מן התשועה, נהגו לומר אחר תשלום השירה "כי לה' המלוכה" וכו', להשלים אותם השמות החסרים. ואחר כך "והיה ה' למלך", רצה לומר, כי לעתיד לבא יבאו כל השמות הקדושים לאחד, ויהיה "ה' אחד ושמו אחד". ומזה הטעם אין צריך לכפול "ה' ימלוך", ואם יכפלו אותו, יוסיפו שם אחד, ויהיו שמונה עשרה, וכל המוסיף גורע, עכ"ל.
The Beis Yosef cites *Orchos Chaim*: > The custom is to conclude *Pesukei DeZimra* with Shiras HaYam because it contains seventy-two sacred letters: eighteen appearances of the four-letter Divine Name, excluding the Name in the phrase, “The Sanctuary, my Master” (Shemos 15:17), which is written with the Name of *Adnus*. Eighteen four-letter Names contain seventy-two letters, corresponding to the seventy-two Divine Names. > > These Names are not all found within the body of the Shirah itself, but throughout the pesukim beginning with, “It was at the morning watch” (Shemos 14:24). Since our custom is to begin only with the account of the salvation, after completing the Shirah we recite, “For kingship belongs to Hashem…” in order to complete the missing Names. We then say, “Hashem will become King,” meaning that in the future all the holy Names will be united as one, and “Hashem will be One and His Name One.” > > For this reason, one should not repeat, “Hashem will reign.” Repeating it would add an additional Divine Name and disturb the intended count, and “whoever adds, detracts” (Orchos Chaim 32, cited by Beis Yosef, Orach Chaim 51).
And in the *Beit Yosef* there, בשם *Orchot Chaim* (siman 32), this is his wording: “The reason why it is customary to conclude *Pesukei DeZimra* with the Song at the Sea is that there are seventy-two letters of holiness, namely eighteen occurrences of the Divine Name of four letters, apart from the Name in ‘*Mikdash Hashem*’ (15:17), which is counted as two letters, totaling seventy-two letters, corresponding to the seventy-two Names. But you do not find them within the body of the song itself; rather, they are all in the verses above, from ‘*Vayehi be’ashmoret ha-boker*’ (14:24). And since we do not customarily begin except from the salvation itself, it became customary to say after the completion of the song, ‘*Ki laHashem ha-melukhah*’ etc., in order to complete those missing Names. And afterward, ‘*V’hayah Hashem leMelekh*’—that is, that in the future all the holy Names will come together as one, and there will be ‘*Hashem echad u’shemo echad*.’ For this reason there is no need to repeat ‘*Hashem yimlokh*’; and if one does repeat it, he adds one Name, making eighteen, and ‘whoever adds, detracts.’”
פירוש: בפסוקי סיפור מעשה קריעת ים סוף ושירת הים, מהפסוק "ויהי באשמורת הבֺקר", ועד סוף השירה, מוזכרים שמונה עשרה פעמים השם הוי"ה, שהוא בן ארבע אותיות, כך שבסך הכל הן שבעים ושתים אותיות של קדושה – שמונה עשר פעמים ארבע עולים לשבעים ושנים. והגם שכשתרד למנינם תראה שתשעה עשר שמות נאמרו בענין, מכל מקום לענינינו הם שמונה עשר, משום שהשם המוזכר בפסוק "מקדש ה' כוננו ידיך" כתיבתו אינה בהוי"ה אלא באדנות, ולענין זה אנו מונים רק את השמות שכתיבתם בהוי"ה.
**Explanation:** From the verse, “It was at the morning watch” (Shemos 14:24), through the conclusion of Shiras HaYam, the four-letter Divine Name is mentioned eighteen times. Eighteen multiplied by four equals seventy-two sacred letters. Although nineteen Divine Names appear in the full passage, only eighteen are relevant to this calculation. The Name in, “The Sanctuary, my Master, that Your hands established” (Shemos 15:17), is written as *Adnus*, not with the four-letter Name. The calculation includes only those Names written with the four-letter Divine Name.
Explanation: In the verses recounting the splitting of the Red Sea and the Song at the Sea, from the verse “And it came to pass in the morning watch” until the end of the song, the Divine Name YHWH, which consists of four letters, is mentioned eighteen times. Thus, in all, there are seventy-two sacred letters—eighteen times four equals seventy-two. And although if you count them you will see that nineteen Names are mentioned in the passage, nevertheless for our purposes they are eighteen, because the Name mentioned in the verse “The sanctuary, O Lord, which Your hands have established” is not written as YHWH but as Adonai; and for this matter we count only those Names whose written form is YHWH.