סימן ס סעיף ד
הָרוֹאֶה קֶשֶׁת, מְבָרֵךְ, בָּרוּךְ אַתָּה ה' אֱלֹקֵינוּ מֶלֶךְ הָעוֹלָם, זוֹכֵר הַבְּרִית וְנֶאֱמָן בִּבְרִיתוֹ וְקַיָּם בְּמַאֲמָרוֹ. אָסוּר לְהִסְתַּכֵּל הַרְבֵּה בַּקֶּשֶׁת (רכ"ט).
When you see a rainbow you say: Baruch ata Adonoy Elokeinu melech ha'olam zocheir haberis vene'eman biveriso vekayam bema'amaro, [Blessed are You, Hashem, our God, King of the universe, Who remembers the covenant, is trustworthy in His covenant and fulfills His word]. It is forbidden to gaze too much at a rainbow.5Therefore, directing someone’s attention to a rainbow serves no useful purpose. (Mishnah Berurah 229: 1)
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)