Les Psaumes 30:4 Midrash : Kohelet Rabbah, Midrash Tanchuma, Shemot Rabbah & Bamidbar Rabbah

יְֽהוָ֗ה הֶֽעֱלִ֣יתָ מִן־שְׁא֣וֹל נַפְשִׁ֑י חִ֝יִּיתַ֗נִי מיורדי־[מִיָּֽרְדִי־] בֽוֹר׃

Seigneur, tu as fait remonter mon âme du Cheol, tu m’as permis de vivre, de ne pas descendre au tombeau.

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.

Midrash Tanchuma

What did Solomon do? Our sages of blessed memory said: He raised the coffin of his father, David, and prostrated himself before it, praying: O Lord God, turn not away the face of Thine anointed. R. Berechiah declared in the name of R. Helbo: At that time David came to life, as you may understand for yourself from David’s own words: O Lord, Thou broughtest up my soul from the netherworld; Thou didst keep me alive, that I should not go down to the pit (Ps. 30:4). Solomon said: Master of the Universe, make it go in for his sake: Remember the good deeds of David Thy servant (II Chron. 6:42). And his prayers were answered immediately, as it is said: O Lord God, turn not away the face of Thine anointed. What is written after that? Now when Solomon had made an end of praying, the fire came down from heaven, etc. (ibid. 7:1). The Holy Spirit then cried out, saying: Wherefore I praise the dead that are already dead (Eccles. 4:2). Thereupon Solomon began to pray: Lift up your heads, O ye gates, and be ye lifted up, ye everlasting doors; that the King of glory may come in (Ps. 24:7). The gates wanted to crush his head, for they thought that he had called himself the King of glory. They said to him: Who is this King of glory? (ibid., v. 10), and he replied: The Lord of hosts, He is the King of glory. When he responded in this way, they were appeased. If they had not been, they would have fallen on his head and crushed him.

Shemot Rabbah

“It was on the day when the Lord spoke to Moses in the land of Egypt” (Exodus 6:28).
“The Lord said to Moses: See, I have set you as god to Pharaoh; and Aaron your brother will be your prophet” (Exodus 7:1).

“It was on the day when the Lord.… The Lord said to Moses: See, I have set you as god to Pharaoh” – that is what is written: “Lift your heads, gates” (Psalms 24:7). Solomon recited this verse when he was taking the Ark into the Holy of Holies. He crafted an Ark that was ten cubits [wide]. When he arrived at the entrance of the Temple, the entrance was ten cubits and the Ark was ten cubits, and ten cubits are unable to enter into ten cubits. Moreover, they were carrying it [and there was certainly not enough space for those bearing the Ark to enter]. When he came to take it in, he was unable to do so. Solomon stood and was embarrassed and did not know what to do. He began praying before the Holy One blessed be He.
What did Solomon do? Our Rabbis, of blessed memory, say: He went and brought David’s coffin, and said: “Lord, God, do not turn away the face of Your anointed” (II Chronicles 6:42). Rabbi Berekhya said in the name of Rabbi Ḥelbo: At that moment, David came alive, as you may expound [from the verse]: “Lord, You took up my soul from the grave, you kept me alive so I would not descent into the pit” (Psalms 30:4). Solomon was saying: ‘Master of the universe, do so due to the merit of this one,’ as it is stated: “Remember the kindnesses of David Your servant” (II Chronicles 6:42). Immediately, [his prayer] was answered. What is written thereafter? “When Solomon finished praying, fire came down from the heavens and consumed the burnt offering and the offerings, and the glory of the Lord filled the house” (II Chronicles 7:1). The Divine Spirit was shouting and saying: “I praise the dead who are already dead more than the living who are still alive” (Ecclesiastes 4:2).
Solomon began saying: “Lift your heads, gates, and be uplifted, everlasting doors; and the King of glory will come” (Psalms 24:7). The gates said to him: “Who then is the King of glory?” (Psalms 24:10). He said to them: “The Lord of Hosts; He is the king of glory. Selah” (Psalms 24:10). When he said this to them, they were immediately calmed. Had it not been so, they would have attempted to crush his skull to kill him.
Another interpretation: “Who then is the King of glory?” – why did he call the Holy One blessed be He the King of glory? It is because He allots glory to those who fear Him. How so? A king of flesh and blood, one does not ride his horse and one does not sit on his throne. But the Holy One blessed be He seated Solomon on His throne, as it is stated: “Solomon sat on the throne of the Lord as king” (I Chronicles 29:23), and He had Elijah ride on His horse. What is the horse of the Holy One blessed be He? It is the whirlwind and the storm, as it is stated: “The Lord, in the whirlwind and in the storm is His way, and the clouds are the dust of His feet” (Nahum 1:3). And it is written: “Elijah went up by the whirlwind to the heavens” (II Kings 2:11).
A king of flesh and blood, one does not use his scepter; but the Holy One blessed be He passed His scepter to Moses, as it is stated: “Moses took the staff of God in his hand” (Exodus 4:20). A king of flesh and blood, one does not wear his crown; but the Holy One blessed be He is destined to place His crown on the messianic king. What is the crown of the Holy One blessed be He? It is the finest gold, as it is stated: “His head is the finest gold; his locks are curled, black as a raven” (Song of Songs 5:11), and it is written: “You set a crown of fine gold on his head” (Psalms 21:4).1This verse refers to the messianic king. A king of flesh and blood, one does not don his garments; but Israel dons the garments of the Holy One blessed be He. What are the garments of the Holy One blessed be He? Strength, as it is stated: “The Lord is clothed, He had girded Himself with strength” (Psalms 93:1). He gave it to Israel, as it is stated: “The Lord will give strength to His people; the Lord will bless His people with peace” (Psalms 29:11).
A king of flesh and blood, one is not called by his name, [such as] Caesar Augustus, and one who is called by his name, they would execute him; but the Holy One blessed be He called Moses by His name, as it is stated: “See, I have set you as god to Pharaoh.” The Holy One blessed be He said to Moses: ‘The wicked Pharaoh made himself a god, as it is stated: “My river is mine, and I have made it for myself” (Ezekiel 29:3); therefore, he will see you and say: This is a god.’