סימן צו סעיף יא
אִם לְאַחַר שֶׁבֵּרֵךְ עַל הַיַּיִן וְאוֹחֵז אֶת הַבְּשָׂמִים בְּיָדוֹ וְנִתְכַּוֵּן לְבָרֵךְ עֲלֵיהֶם, טָעָה בִּלְשׁוֹנוֹ וְאָמַר, בּוֹרֵא מְאוֹרֵי הָאֵשׁ, וְתוֹךְ כְּדֵי דִּבּוּר נִזְכַּר וְסִיֵּם עוֹד בּוֹרֵא מִינֵי בְּשָׂמִים, עָלְתָה לוֹ הַבְּרָכָה לְהַבְּשָׂמִים, וּמְבָרֵךְ אַחַר כָּךְ עַל הַנֵּר. אֲבָל אִם נִתְכַּוֵּן בְּבִרְכָתוֹ עַל הַנֵּר, עָלְתָה לוֹ עַל הַנֵּר, וּמְבָרֵךְ אַחַר כָּךְ עַל הַבְּשָׂמִים.
If after you recited the berachah on the wine and you are holding the besamim in your hand and intended to recite the berachah over them, you inadvertently said "borei me'orei ha'eish," and immediately33תּוֹ כְּדֵי דִיבּוּר—within the time it takes to greet your teacher by saying, “Shalom Alecha Rabbi.” realized [your error] and concluded "borei minei vesamim" the berachah is valid for the besamim. You may then recite the berachah on the candle. But, if you intended the berachah for the candle, it is valid for the candle, and recite the berachah on the besamim afterwards.34See Mishnah Berurah 209: 6.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)