9:13

אֶת־קַשְׁתִּי נָתַתִּי בֶּעָנָן וְהָיְתָה לְאוֹת בְּרִית בֵּינִי וּבֵין הָאָרֶץ׃

My bow I have set in the cloud, and it shall be a sign of the covenant between Me and the earth.

Bereshit 9:13

אֶת־קַשְׁתִּי נָתַתִּי בֶּעָנָן

Bereshit / Genesis 9:13 · Drash

Bereshit 9:13

אֶת־קַשְׁתִּי נָתַתִּי בֶּעָנָן וְהָיְתָה לְאוֹת בְּרִית בֵּינִי וּבֵין הָאָרֶץ׃

My bow I have set in the cloud, and it shall be a sign of the covenant between Me and the earth.

Drash דְּרָשׁ

If a rainbow was seen in his days

The midrash tells how Eliyahu brought Rabbi Yehoshua ben Levi to Rabbi Shimon bar Yochai, who asked one question: was a rainbow seen in his days? And Pirkei deRabbi Eliezer puts the rainbow in the list of ten things created at twilight of the first Shabbat.

Bereshit Rabbah: "for generations" is written short, excluding two generations: Chizkiyahu and the Men of the Great Assembly. Rabbi Chizkiya replaces the Men of the Great Assembly with the generation of Rabbi Shimon bar Yochai. Eliyahu and Rabbi Yehoshua ben Levi were studying together and reached a tradition from Rabbi Shimon bar Yochai. Eliyahu went in to him. "Who is with you?" "The great one of the generation, Rabbi Yehoshua ben Levi." "Was a rainbow seen in his days?" "Yes." "If a rainbow was seen in his days, he is not worthy to see my face." Three sayings of Rabbi Shimon in the name of Rabbi Yirmiya: "valley, valley, fill with gold dinars", and it filled. "If Avraham wants, let him plead from himself to me, and I from myself to the King Mashiach". "The world cannot stand on fewer than thirty righteous like Avraham, and if one, it is I". Pirkei deRabbi Eliezer: ten things were created on the eve of Shabbat at twilight: the mouth of the earth, the mouth of the well, the mouth of the donkey, the rainbow, the manna, the staff, the shamir, the writing, the inscription and the tablets.

How Bereshit Rabbah and Pirkei DeRabbi Eliezer explain it

Bereshit Rabbah "And the Almighty said: this is the sign of the covenant that I give between Me and you... for everlasting generations"

Rabbi Yudan said: "for generations" (לְדֹרֹת) is written short, excluding two generations: the generation of Chizkiyahu and the generation of the Men of the Great Assembly. Rabbi Chizkiya takes out the generation of the Men of the Great Assembly and brings in the generation of Rabbi Shimon bar Yochai.

Eliyahu, remembered for good, and Rabbi Yehoshua ben Levi were sitting and studying together. They reached a tradition from Rabbi Shimon bar Yochai. They said: here is the master of this tradition, let us go in and ask him. Eliyahu, remembered for good, went in to him. He [Rabbi Shimon] said to him: who is with you? He said to him: the great one of the generation, Rabbi Yehoshua ben Levi. He said to him: was a rainbow seen in his days? He said to him: yes. He said: if a rainbow was seen in his days, he is not worthy to see my face.

Rabbi Chizkiya in the name of Rabbi Yirmiya said: so said Rabbi Shimon bar Yochai: valley, valley, fill with gold dinars! And it filled. Rabbi Chizkiya in the name of Rabbi Yirmiya said: so said Rabbi Shimon bar Yochai: if Avraham wants, let him bring near [to Heaven] from himself to me, and I will bring near from myself to the King Mashiach. And if he does not want, let Achiya of Shilo join me, and we will bring near from Avraham to the King Mashiach. Rabbi Chizkiya in the name of Rabbi Yirmiya said: so said Rabbi Shimon bar Yochai: the world cannot stand on fewer than thirty righteous like Avraham our father. If they are thirty, I and my son are two of them. If twenty, I and my son are of them. If ten, I and my son are of them. If five, I and my son are of them. If two, they are I and my son. If one, it is I.

Pirkei DeRabbi Eliezer Ten things were created on the eve of Shabbat at twilight (Avot 5:6)

These are they: the mouth of the earth, the mouth of the well, the mouth of the donkey, the rainbow, the manna, the staff, the shamir, the writing, the inscription and the tablets. And some say: also the harmful spirits, and the grave of Moshe, and the ram of Yitzchak. And some say: also the tongs.

Takeaway

The Men of the Great Assembly: one hundred and twenty sages at the start of the Second Temple, headed by Ezra. The Talmud credits them with the text of the Amida prayer and the order of blessings (Berakhot 33a).
Eliyahu "remembered for good" (זָכוּר לַטּוֹב): so the midrash calls the prophet Eliyahu, who did not die but went up (Melachim II / II Kings 2:11) and in the stories of the sages appears to them.
Rabbi Yehoshua ben Levi (3rd century, Lod) often meets Eliyahu in the Talmud, for example in the story of the Mashiach at the gates of Rome (Sanhedrin 98a). Here the meeting ends in a refusal.
The three sayings of Rabbi Shimon bar Yochai stand together in the Talmud (Sukkah 45b): on the thirty righteous, "I and my son", and on Avraham and Achiya of Shilo.
Achiya of Shilo is a prophet of the days of Shlomo and Yerovam (Melachim I / I Kings 11:29). By tradition he lived from Egypt to Yerovam and taught Eliyahu (Bava Batra 121b). Assumption: the midrash puts him beside Rabbi Shimon as a second long-lived intercessor.
"Ten things were created on the eve of Shabbat at twilight" (Avot 5:6): the mouth of the earth swallowed Korach (Bamidbar / Numbers 16:32), the mouth of the well watered the desert, the mouth of the donkey spoke to Bilam (Bamidbar / Numbers 22:28), the shamir is the worm that cut the stones of the Temple.
The list of twilight creations holds things that break nature but were laid into it in advance. The rainbow is in this list: a sign prepared from creation that waited for its hour.