סימן יט סעיף ו
אִם טָעָה וְלֹא אָמַר טַל וּמָטָר, אִם נִזְכַּר קוֹדֶם שֶׁסִּיֵם הַבְּרָכָה מְבָרֵךְ הַשָּׁנִים, אוֹמֵר שָׁם וְתֵן טַל וּמָטָר לִבְרָכָה עַל פְּנֵי הָאֲדָמָה וְשַׂבְּעֵנוּ וְכוּ' וְחוֹתֵם כָּרָאוּי. וְאִם לֹא נִזְכַּר עַד לְאַחַר שֶׁחָתַם הַבְּרָכָה מִתְפַּלֵּל לְהַלָּן. וּבְתוֹךְ בִּרְכַּת שְׁמַע קוֹלֵנוּ אַחַר רֵיקָם אַל תְּשִׁיבֵנוּ, אוֹמֵר וְתֵן טַל וּמָטָר לִבְרָכָה כִּי אַתָּה שׁוֹמֵעַ וְכוּ' וַאֲפִלּוּ אִם לֹא נִזְכַּר אָז רַק אַחַר שֶׁאָמַר בָּרוּךְ אַתָּה, כָּל שֶׁלֹּא אָמַר עֲדַיִן אֶת הַשֵּׁם, יָכוֹל לוֹמַר וְתֵן טַל וּמָטָר לִבְרָכָה כִּי אַתָּה שׁוֹמֵעַ וְכוּ' אֲבָל לֹא נִזְכַּר עַד לְאַחַר שֶׁסִּיֵּם הַבְּרָכָה שׁוֹמֵעַ תְּפִלָּה, חוֹזֵר וּמַתְחִיל בָּרֵךְ עָלֵינוּ וְכוּ' וְאִם לֹא נִזְכַּר עַד לְאַחַר שֶׁאָמַר אֵת הַפָּסוּק יִהְיוּ לְרָצוֹן וְגוֹ', חוֹזֵר לְרֹאשׁ הַתְּפִלָּה.
If you erred and did not say tal umatar: If you remembered before ending the berachah of mevarech hashanim, say: [before the close of the berachah] vesein tal umatar livrachah al pnei ha'adama vesabeinu … and conclude [the berachah] properly (i. e. Baruch… mavarech hashanim). If you did not remember until having completed the berachah, continue on, and in the berachah of Shema koleinu, after the words: "reikom al tisheveinu" ["Do not turn us away empty-handed,"] say: vesein tal umatar livrachah Ki atah shomea … And even if you did not remember then, but only after you said, Baruch atah, as long as you had not yet said Hashem, you may say: vesin tal umatar livrachah, ki ata shomea … But, if you did not realize [that you forgot to add tal umatar] until after you completed the berachah Shomea tefillah, [then] you must go back and begin Bareich aleinu … And if you did not remember until you said the verse [at the end of Shemoneh Esrei]: Yihyu le'ratzon … you must go back to the very beginning of the Shemoneh Esrei.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)