מדרש אויף בראשית 2:8

וַיִּטַּ֞ע יְהוָ֧ה אֱלֹהִ֛ים גַּן־בְעֵ֖דֶן מִקֶּ֑דֶם וַיָּ֣שֶׂם שָׁ֔ם אֶת־הָֽאָדָ֖ם אֲשֶׁ֥ר יָצָֽר׃

און גאָט דער האַר האָט געפֿלאַנצט אַ גאָרטן אין עֵדֶן, אין מזרח, און האָט דאָרטן אַרײַנגעזעצט דעם מענטשן װאָס ער האָט געפֿורעמט.

Ruth Rabbah

Rabbi Menaḥem bar Avin interpreted the verse as referring to Moses. “And Yokim” (I Chronicles 4:22) – on the basis of: “Rise [kuma] Lord, and let Your enemies be scattered” (Numbers 10:35). “And the people of Kozeva” (I Chronicles 4:22) – as he rendered the word of the Holy One blessed be He like falsehoods [kazav], as it is stated: “Why, Lord, is Your wrath enflamed at Your people?” (Exodus 32:11).75God had said that He would consume the Israelites (Exodus 32:10), but after Moses’ prayer, He relented and did not destroy them. “Yoash” (I Chronicles 4:22) – as he despaired [nitya’ash] of living,” as it is stated: “And if not, please expunge me” (Exodus 32:32). “And Saraf” (I Chronicles 4:22) - as he mentioned the act of those who were burned [serufim], “Remember Abraham, Isaac, and Israel your servants” (Exodus 32:13).76See footnote 18. “Who had dominion [ba’alu] over Moav” (I Chronicles 4:22) – as his pleasant actions ascended [alu] and came before his Father [aviv] in Heaven. “And Yashuvi Laḥem” (I Chronicles 4:22) – as he ascended on high and captured the Torah, on the basis of what is stated: “You ascended on high and you took a captive [shevi]” (Psalms 68:19).
“And the matters are ancient [atikim]” (I Chronicles 4:22) – Rabbi Aivu and Rabbi Yehuda ben Simon, Rabbi Aivu said: Even items that were taken [nitatku] from them, [Moses] returned, as it is stated: “Hew for yourself [two tablets of stone like the first]” (Exodus 34:1). These matters77On the tablets. were stated by He who will [ultimately] remove [ma’atik] the world, as it is said: “He removed from there” (Genesis 12:8).78Thus, the term atikim in the verse in I Chronicles is interpreted to refer to the tablets broken by Moses and then replaced, which contained the word of God. Rabbi Yehuda ben Rabbi Simon said: These matters are vague here, but explicit elsewhere. He restored [the tablets] to them, as it is stated: “The Lord said to Moses: ‘Write these matters for yourself, as on the basis of these matters [I have established a covenant with you and with Israel]’” (Exodus 34:27). “They are the yotzerim” (I Chronicles 4:23) – on the basis of: “The Lord God formed [vayitzer]” (Genesis 2:19).79The midrash interprets the word yotzerim in the sense of yetzurim, creations. The subject is the words of Torah, because God’s intent in creating the world was in order to give the Torah (Etz Yosef).
Another matter, “they are the yotzerim” (I Chronicles 4:23) – these are the souls of the righteous with whom the Holy One blessed be He consulted when creating the world. “And the dwellers among the plants” (I Chronicles 4:23) – on the basis of: “And the Lord God planted” (Genesis 2:8). “And a fence” (I Chronicles 4:23) – on the basis of what is stated: “Who placed the sand for the bound of the sea” (Jeremiah 5:22). “With the king in his service” (I Chronicles 4:23) – the souls of the righteous sat there with the King who is the king of kings, the Holy One blessed be He, and He consulted them and created His world.
פֿרעגט אַ רבֿBookmarkShareCopy

Pirkei DeRabbi Eliezer

PREMUNDANE CREATION, AND THE WORK OF THE FIRST DAY
R. ELIEZER BEN HYRḲANOS opened (his discourse with the text), "Who can utter the mighty acts of the Lord, or shew forth all his praise?" (Ps. 106:2). Is there any man who can utter the mighty acts of the Holy One, blessed be He, or who can shew forth all His praise? Not even the ministering angels are able to narrate (the Divine praise). But to investigate a part of His mighty deeds with reference to what He has done, and what He will do in the future (is permissible), so that His name should be exalted among His creatures, whom He has created, from one end of the world || to the other, as it is said, "One generation to another shall laud thy works" (Ps. 145:4).
פֿרעגט אַ רבֿBookmarkShareCopy

Pirkei DeRabbi Eliezer

Whence do we know that this applies to the Torah? Because it is said, "The Lord possessed me in the beginning of his way, before his works of old" (Prov. 8:22). "Of old" means before the world was created. Whence do we know this with regard to the Garden of Eden? Because it is said, "And the Lord God planted a garden of old" (Gen. 2:8). "Of old," whilst as yet the world had not been created. Whence do we know this with reference to the Throne of Glory? Because it is said, "Thy throne is established of old" (Ps. 93:2). "Of old," whilst as yet the world had not been created. Whence do we know that Repentance (was premundane)? Because it is said, "Before the mountains were brought forth, or ever thou hadst formed the earth and the world" (Ps. 90:2); and then in close proximity (we read), "Thou turnest man to contrition" (Ps. 90:3). "Before," i.e. before || the world was created. Whence do we know this with regard to the Temple? Because it is said, "A glorious throne, set on high from the beginning, is the place of our sanctuary" (Jer. 17:12). "From the beginning," whilst as yet the world had not been created. Whence we do know that the name of the Messiah (was premundane)? Because it is said, "His name shall endure for ever; before the sun Yinnôn was his name" (Ps. 72:17). "Yinnôn," before the world had been created. Another verse says, "But thou, Bethlehem Ephrathah, which art to be least among the thousands of Judah, from thee shall he come forth unto me who is to be ruler over Israel; whose ancestry belongs to the past, even to the days of old" (Mic. 5:2). "The past," whilst as yet the world had not been created.
פֿרעגט אַ רבֿBookmarkShareCopy