סימן יט סעיף ט
טָעָה בְּמַעֲרִיב לֵיל רִאשׁוֹן שֶׁל פֶּסַח, וְהִתְפַּלֵּל תְּפִלַּת שְׁמֹנֶה עֶשְׂרֵה שֶׁל חֹל, וְנִזְכַּר לְאַחַר שֶׁהִתְחִיל בָּרֵךְ עָלֵינוּ שֶׁהַדִּין הוּא שֶׁצָרִיךְ לְסַיֵּם כָּל אוֹתָה בְּרָכָה (כְּמוֹ שֶׁאֶכְתֹּב לְקַמָּן סִימָן ע"ו) אֵינוֹ אוֹמֵר טַל וּמָטָר כֵּיוָן שֶׁגַּם הַצִּבּוּר אֵינָם אוֹמְרִים, וְאִם חָלָה הַשְּׁאֵלָה (הוּא יוֹם הַתְחָלָה לִשְׁאֹל טַל וּמָטָר) בְּיוֹם שַׁבָּת, וְטָעָה וְהִתְפַּלֵּל שֶׁל חֹל וְהִתְחִיל בָּרֵךְ עָלֵינוּ, גַּם כֵּן אֵינוֹ אוֹמֵר טַל וּמָטָר, כֵּיוָן שֶׁהַצִּבּוּר עֲדַיִן לֹא הִתְחִילוּ, וְהַיָּחִיד נִגְרָר אַחַר הַצִּבּוּר. (קי"ז)
If you erred at Maariv on the first night of Pesach, and you prayed the Shemoneh Esrei of the weekdays, and you realized [your error] after you began Bareich oleinu, the law being [that even having begun a berachah in error] you must complete that full berachah, but do not add tal umatar, since the congregation also omits it. If the she'eila (petition) (that is, the day that we begin to pray— or "petition" for tal umatar) falls on Shabbos, and by mistake you prayed [the Shemoneh Esrei] of the weekdays and also began [the berachah] Bareich aleinu, you do not say tal umatar, since the congregation has not yet started, and the individual always follows the congregation.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)