סימן כא סעיף ז
טָעָה בְּרֹאשׁ חֹדֶשׁ בְּמִנְחָה, וְלֹא אָמַר יַעֲלֶה וְיָבֹא, וּלְמָחָר אֵינוֹ רֹאשׁ חֹדֶשׁ, אִם כֵּן אַף אִם יִתְפַּלֵּל עַרְבִית שְׁתַּיִם, לֹא יַרְוִיחַ כְּלוּם, שֶׁהֲרֵי אֵינוֹ יָכוֹל לוֹמַר עוֹד יַעֲלֶה וְיָבֹא, וּבְלֹא יַעֲלֶה וְיָבֹא, הֲרֵי כְּבָר הִתְפַּלֵּל עַל כֵּן אֵינוֹ מִתְפַּלֵּל כְּלָל לְתַשְׁלוּמִין.
If you erred at Minchah on Rosh Chodesh by omitting Ya'aleh ve'yavo, and the following day it is not Rosh Chodesh, and as a result, even if you pray two [Shemoneh Esreis] at Maariv, you will gain nothing, since you can no longer say Ya'aleh ve'yavo, and you already prayed once without Ya'aleh ve'yavo, therefore, you do not pray a make-up tefillah at all.19Explanation: At Minchah you did pray, albeit without Ya’aleh ve’yavo. Subsequently, all that is lacking is Ya’aleh ve’yavo, and since at the make-up prayer you won’t compensate for Ya’aleh ve’yavo—it no longer being Rosh Chodesh—therefore, no compensation is possible. According to Mishnah Berurah, however, even if it is a regular weekday, you should make up the prayer with the condition as stated in note 9.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)