#One is obligated to say ritze vihachalitzenu after eating seudat shlishit during
birkat hamazon as well as adding yaale viyavo on rosh chodesh or chol hamoed. <ref> Yalkut Yosef Shabbat volume 1 page 410. </ref> This applies even if the meal continued past [[Tzet HaKochavim]]. <ref> Yalkut Yosef shabbat 1 page 414 </ref>
#If he forgot to say it and remembered:
## after finishing boneh yerushalayim but before the next beracha he should insert there a beracha instead of ritze "Baruch Ata Hashem Elokenu Melech Ha'olam Asher Natan Shabbatot Le'menucha Le'amo Yisrael Be'ahava Le'ot U'berit Baruch Ata Hashem Mekadesh Ha'Shabbat."