מדרש אויף יחזקאל 37:7

וְנִבֵּ֖אתִי כַּאֲשֶׁ֣ר צֻוֵּ֑יתִי וַֽיְהִי־ק֤וֹל כְּהִנָּֽבְאִי֙ וְהִנֵּה־רַ֔עַשׁ וַתִּקְרְב֣וּ עֲצָמ֔וֹת עֶ֖צֶם אֶל־עַצְמֽוֹ׃

און איך האָב נבֿיאות געזאָגטאַזױ װי איך בין באַפֿױלן געװאָרן;און עס איז געװאָרן אַ גערױש, װי איך האָב נבֿיאות געזאָגט;ערשט אַ גערודער, און די בײנער האָבן גענענט בײן צו זײַן בײן.

Kohelet Rabbah

“Better than both of them is one who has not yet been, who has not seen the evil actions that are done under the sun” (Ecclesiastes 4:3).
“Better than both of them is one who has not yet been” – these are the one thousand generations that were in God’s mind to have created. How many of them were eliminated? Rabbi Yoḥanan says in the name of Rabbi Eliezer son of Rabbi Yosei HaGelili: Nine hundred and seventy-four generations, as it is stated: “He commanded the matter for one thousand generations” (Psalms 105:8).7God intended to give the Torah after one thousand generations, but He actually gave the Torah after just twenty-six generations.
Rabbi Yehoshua interpreted the verse regarding the Israelites at the time that they stood before Mount Sinai. Once they performed that act,8The sin of the Golden Calf Moses did not leave any corner of the ground on the mountain upon which he did not prostrate himself in prayer asking for mercy upon Israel, but he was not answered. Five angels of destruction harassed him: Anger, Destruction, Annihilation, Wrath, and Fury. Moses was fearful of them. What did he do? He relied on the actions of the patriarchs, and immediately mentioned them and said: “Remember Abraham, Isaac, and Israel Your servants” (Exodus 32:13). The Holy One blessed be He said to him: ‘Moses, what claims do the patriarchs of the world have against Me? If I come to be exacting with them, I have claims against them. I have a claim against Abraham, who said: “How will I know that I will inherit it” (Genesis 15:8)? I have a claim against Isaac, as it is stated: “Isaac loved Esau” (Genesis 25:28), but I hated him, as it is stated: “And Esau I hated” (Malachi 1:3). I have a claim against Jacob, who said: “My way is hidden from the Lord” (Isaiah 40:27).’ Once [Moses] said: “To whom You took an oath by Yourself” (Exodus 32:13), for the sake of Your name, at that moment, the Holy One blessed be He was filled with mercy, as it is stated: “The Lord reconsidered…” (Exodus 32:14). Immediately, three of the angels of destruction, Anger, Destruction, and Annihilation, departed, and two remained: Wrath and Fury. That is what is written: “For I was in dread due to the Wrath and the Fury” (Deuteronomy 9:19). He said before Him: ‘Master of the universe, am I able to withstand the two of them? You bear one and I will bear one.’ That is what is written: “Arise, Lord, in Your wrath [be’appekha]…” (Psalms 7:7).9This is expounded to mean that God will arise against His angel, Wrath [af]. From where is it derived that Moses withstood one, the angel of Fury [Ḥema]? It is as it is stated: “He said He would destroy them, were it not for Moses, His chosen one, who stood before Him in the breach to turn back His fury” (Psalms 106:23).10This is expounded to mean that Moses stood in the breach against the angel of destruction, Fury [Ḥema]. It is regarding that moment that he said: “I praise the dead […more than the living]” (Ecclesiastes 4:2), like me and my associates.11Solomon thus states from the perspective of Moses: The dead, namely Abraham, Isaac, and Jacob, were able to have a greater effect than the living, namely my associates and me.
Rabbi Shmuel bar Naḥman interpreted the verse regarding David. When Solomon built the Temple, he requested that fire descend from the heavens, but it did not descend. He sacrificed one thousand burnt offerings, but it did not descend. He prayed twenty-four prayers, but it did not descend, until he said: “Remember the good deeds of David your servant” (II Chronicles 6:42), [and then] it descended immediately, as it is stated: “When Solomon concluded praying, the fire descended” (II Chronicles 7:1). Rabbi Yuda ben Rabbi Le’ai and the Rabbis: Rabbi Yuda ben Rabbi Le’ai said: David came to life at that time. The Rabbis say: He brought his coffin. They do not disagree;12They do not disagree based on their own reasoning but based on verses (Etz Yosef, citing Yefe To’ar). the one who said David came to life at that time, that is what David himself said: “Lord, You have raised my soul from the grave…” (Psalms 30:4), and another verse says: “Lord God, do not reject the face of Your anointed” (II Chronicles 6:42), as he is alive before You. The one who said: He brought his coffin, that is what is written: “Remember the good deeds of David Your servant” (II Chronicles 6:42). It is regarding that moment that he said: “I praise the dead […more than the living]” (Ecclesiastes 4:2), like me and my associates.
Rabbi Yehuda ben Rabbi Simon interpreted the verse regarding Ezekiel. When he stood in the valley and said: “Dry bones, heed the word of the Lord” (Ezekiel 37:4), immediately, “the bones came together, each bone to its bone…” (Ezekiel 37:7). He said to them: ‘Initially I said to you: “Heed the word of the Lord, house of Jacob” (Jeremiah 2:4), but you did not heed; and now you are heeding. During your lifetimes you did not heed; after your deaths you heeded.’ Regarding that moment it is stated: “I praise the dead […more than the living]” (Ecclesiastes 4:2), like me and my associates.13The generation of Ezekiel did not heed the word of God, but those who had already died were heeding His word after death.
פֿרעגט אַ רבֿBookmarkShareCopy

Pirkei DeRabbi Eliezer

Rabbi Phineas said: After twenty years, when all of them had been slain in Babylon, the Holy Spirit rested upon Ezekiel, and brought him forth into the plain of Dura, and called unto him very dry bones, and said to him: Son of Man ! What dost thou see? He answered: I see here dry bones. (The Spirit) said to him: Have I power to revive them? The prophet did not say: Sovereign of all the worlds ! Thou hast power to do even more than (this) here; but he said: "O Lord God, thou knowest" (Ezek. 37:3), as though he did not believe; therefore his own bones were not buried in a pure land, but in an unclean land, as it is said, "And thou shalt die in a land that is unclean" (Amos 7:17). "Prophesy over these bones" (Ezek. 37:4). He said before Him: Sovereign of all the worlds ! What ! will the prophecy bring upon them flesh and sinews and bones? Or will the prophecy bring upon them all the flesh and bones which cattle, beast, and bird have eaten, and they (also) have died in the land? Immediately the Holy One, blessed be He, caused His voice to be heard, and the earth shook, as it is said, "And as I prophesied there was a thundering, and behold an earthquake" (Ezek. 37:7), || and every animal, beast, and bird which had eaten thereof and died in another land the earth brought together, "bone to his bone" (ibid.).
פֿרעגט אַ רבֿBookmarkShareCopy

Pirkei DeRabbi Eliezer

Rabbi Joshua ben Ḳorchah said: There came down upon them the quickening dew from heaven, which was like a fountain, which was bubbling and bringing forth water; so likewise (the bones) were moving and bringing forth upon themselves flesh, (other) bones and sinews, as it is said, "And I beheld, and lo, there were sinews upon them, and flesh came up, and skin covered them above" (Ezek. 37:8). He said to him: Prophesy unto the wind, as it is said, "Then said he unto me, Prophesy unto the wind.… Come from the four winds, O breath, and breathe upon these slain, that they may live" (Ezek. 37:9). In that hour the four winds of the heaven went forth, and opened the treasure-house of the souls, and each spirit returned to the body of flesh of man, as it is said, "So I prophesied as he commanded me, and the breath came into them, and they lived,… an exceeding great army" (Ezek. 37:10); and it is written about Egypt, "And the children of Israel were fruitful,… and waxed exceeding mighty" (Ex. 1:7). What is the meaning of "exceeding"? Just as in the latter case there were 600,000 (men), so in the former case there were 600,000 (men), and they all stood upon their feet except one man. The prophet said: Sovereign of all the worlds ! What is the nature of this man? He answered him: He gave out money for usury, and he took with interest. || As I live, he shall not live. In that hour the Israelites were sitting and weeping, and saying: We hoped for light, and darkness came. We hoped to stand up with all Israel at the resurrection of the dead, and now "our hope is lost" (Ezek. 37:11). We hoped to arise so as to be gathered with all Israel, and now "we are clean cut off" (ibid.). In that hour the Holy One, blessed be He, said to the prophet: Therefore, say to them, As I live, I will cause you to stand at the resurrection of the dead in the future that is to come, and I will gather you with all Israel to the land, as it is said, "Behold, I will open your graves, and cause you to come up out of your graves… and I will bring you into the land of Israel.… And I will put my spirit in you, and ye shall live" (Ezek. 37:12, 14).
פֿרעגט אַ רבֿBookmarkShareCopy