Mentioning "Al HaNissim" Outside of Hanukkah
Question
Answer
Hello
If one mistakenly mentions something in their prayer at the wrong time, such as "Al HaNissim" outside of Hanukkah and Purim, or "Ya'aleh V'Yavo" not on Rosh Chodesh, according to the Shulchan Aruch, one does not need to repeat it, but according to most poskim, one should repeat it.
In prayer: according to the Mishnah Berurah, if it is within the blessing, return to the beginning, and if after the blessing, return to the beginning of the blessing. In the first three or last three blessings, return to the beginning of the three.
The same applies in Birkat Hamazon, start from the beginning of the blessing.
Source
Shulchan Aruch, Siman 108, Se'if 12, Mishnah Berurah Se'if Katan 38.
See Siman 104, Se'if 6, and Mishnah Berurah there.