In Nusach Sephard, why is the phrase "Hashem Melech; Hashem Malach; Hashem yimloch l'olam va'ed" repeated in the paragraph after Tehillim 30?<sup>*</sup> I've heard it has everything to do with the writings of the Arizal, but I'm not sure.

This question is unique to Nusach Sfard and the Sephardi nusachot, in somewhat of a follow-up to [my previous question][1] regarding the phrase's repetition in "Az Yashir".

<sup>* "Mizmor shir chanukat habayit l'David..." You can see what I'm talking about [here][2].</sup>


  [1]: https://judaism.stackexchange.com/questions/89188/why-is-there-an-aramaic-line-after-hashem-yimloch-lolam-vaed-in-az-yashir
  [2]: https://www.sefaria.org/Siddur_Sefard,_Weekday_Shacharit,_Hodu.7-10?lang=bi&with=all&lang2=en