“In the beginning, God created” – six items preceded the creation of the world; some of them were [actually] created, and some of them God contemplated creating, [though He did not actually do so]. The Torah and the Throne of Glory were created. Torah, from where is it derived? As it is stated: “The Lord made me15The speaker is Wisdom (the Torah) personified. at the beginning of His way” (Proverbs 8:22).

The Throne of Glory, from where is it derived? “Your throne stands firm from earliest time, [You are from eternity]” (Psalms 93:2). The patriarchs, Israel, the Temple, and the name of the messianic king – God contemplated creating them [before the world, but did not]. The patriarchs, from where is it derived?

“Like grapes in the wilderness [I found Israel, like a first fruit on the fig tree, at its beginning [bereshitah] I saw your fathers]” (Hosea 9:10). Israel, from where is it derived? “Remember Your congregation, that You acquired from old times” (Psalms 74:2). The Temple, from where is it derived?

“Throne of glory, exalted from the beginning, [is the place of our Temple]” (Jeremiah 17:12). The name of the messianic king, from where is it derived? “May his name endure forever. His name is praised before the sun”16The Midrash expounds “before” to mean prior to. (Psalms 72:17).

Rabbi Ahava ben Rabbi Ze’eira said: Repentance as well, as it is stated: “Before the birth of mountains” (Psalms 90:2), and at that same time, “You bring man down until he is crushed, [and then You say: Return, sons of man]” (Psalms 90:3). But I do not know which of them17The two things that were actually created before the world. was first – did the Torah precede the Throne of Glory, or did the Throne of Glory precede the Torah?

Rabbi Abba bar Kahana said: The Torah preceded the Throne of Glory, as it is stated: “The Lord made me at the beginning of His way, [before His undertakings of old times]” (Proverbs 8:22) – before that in whose regard it is written: “Your throne stands firm from earliest time” (Psalms 93:2). Rabbi Huna and Rabbi Yirmeya said in the name of Rabbi Shmuel bar Rabbi Yitzḥak: The contemplation about [creating] Israel preceded all other things.

This is analogous to a king who married a noblewoman, but did not have a son from her. Once the king was found passing in the marketplace. He said: ‘Take this ink and inkwell for my son.’ Everyone was saying: ‘He has no son and yet he says: Take this ink and inkwell for my son?’

Then they said: ‘The king is a great astrologer, had it not been that he is destined to beget a son from her, he would not have said: Take this ink and inkwell for my son.’ So, too, had it not been that the Holy One blessed be He foresaw that after twenty-six generations Israel was destined to receive the Torah, He would not have written in the Torah: “Command the children of Israel”; “speak to the children of Israel.”

Rabbi Banai said: The world and its contents were created only due to the merit of the Torah, as it is stated: “The Lord founded the earth with wisdom [beḥochma]”18Beḥochma could also be translated “for the sake of wisdom” – wisdom, throughout Proverbs, refers to the Torah. Similarly, the Midrash is interpreting Bereshit as “for the sake of Reshit” – God created the heavens and the earth for the sake of that which is called Reshit. (Proverbs 3:19).

Rabbi Berekhya said: It was due to the merit of Moses, as it is stated: “He saw the first [reshit] for himself, [as there the portion of the lawgiver is hidden]” (Deuteronomy 33:21).19Moses, the lawgiver, is called Reshit, the first one. Rav Huna said in the name of Rav Matana: The world was created for the sake of three things: For the sake of ḥalla, for the sake of tithes, and for the sake of first fruits.

What is the source? “In the beginning, [bereshit]20Or, for the sake of reshit. God created,” and reshit is nothing other than ḥalla, as it is stated: “The first of [reshit] your kneading basket” (Numbers 15:20). Reshit is nothing other than tithes, as it says: “The first [reshit] of your grain” (Deuteronomy 18:4).

And reshit is nothing other than first fruits, as it is stated: “The choicest of [reshit] the first fruits of your land…” (Exodus 23:19).