סימן יט סעיף ד
אִם טָעָה בַּקַּיִץ וְאָמַר מַשִּׁיב הָרוּחַ וּמוֹרִיד הַגָּשֶׁם, אִם נִזְכַּר קוֹדֶם שֶׁאָמַר הַבְּרָכָה מְחַיֵּה הַמֵּתִים, חוֹזֵר וּמַתְחִיל אַתָּה גִּבּוֹר וְכוּ' (וְאֵין זֹאת מִדִּין חֲזָרָה, אֶלָּא כְּדֵי שֶׁתְּהֵא הַבְּרָכָה נִכֶּרֶת שֶׁאֵינוֹ אוֹמֵר בָּהּ מַשִּׁיב הָרוּחַ וּמוֹרִיד הַגָּשֶׁם). אֲבָל אִם לֹא נִזְכַּר עַד לְאַחַר שֶׁסִּיֵּם מְחַיֵּה הַמֵּתִים חוֹזֵר לְרֹאשׁ הַתְּפִלָּה. אִם לֹא אָמַר רַק מַשִּׁיב הָרוּחַ וְלֹא אָמַר מוֹרִיד הַגֶּשֶׁם, אֵינוֹ מַזִּיק כְּלָל וְאוֹמֵר מְכַלְכֵּל חַיִּים וְכוּ'. אִם טָעָה בְּמַעֲרִיב אוֹ בְּשַׁחֲרִית שֶׁל שְׁמִינִי עֲצֶרֶת וַאֲמָרוֹ, אֵין צָרִיךְ לַחְזֹר לְרֹאשׁ (קי"ד).
If you erred during the summer and said: mashiv haruach umorid hageshem, if you remembered (realized your error) before you completed the berachah, mechayei hameisim, you should go back and begin Atoh gibor (i. e. the beginning of the berachah). (This is not because the berachah is invalid, but so that it is apparent that the berachah does not include mashiv haruach umorid hageshem). But if you did not realize [your error] until after you completed [Baruch atah Hashem] mechayei hameisim, you must return to the beginning of Shemoneh Esrei. If you only said mashiv haruach [and realized your error] and did not say morid hageshem, [the berachah] is not invalid at all and you may continue mechalkeil chayim … If you erred at maariv or in Shacharis of Shemini Atzeres and added (Mashiv haruach …) you need not go back to the beginning.6Although we do not add mashiv haruach until Musaf. Since, however, the entire day of Shemini Atzeres is compatible with its inclusion, once you have said it, the berachah is not invalid.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)