Devarim / Deuteronomy 9:18 · Drash
וָאֶתְנַפַּל לִפְנֵי יְהוָה כָּרִאשֹׁנָה אַרְבָּעִים יוֹם וְאַרְבָּעִים לַיְלָה לֶחֶם לֹא אָכַלְתִּי וּמַיִם לֹא שָׁתִיתִי עַל כָּל־חַטַּאתְכֶם אֲשֶׁר חֲטָאתֶם לַעֲשׂוֹת הָרַע בְּעֵינֵי יְהוָה לְהַכְעִיסוֹ׃
And I fell down before the Eternal, as at the first, forty days and forty nights: I ate no bread and drank no water, because of all your sin which you had sinned, in doing what was evil in the eyes of the Eternal, to provoke Him.
Drash דְּרָשׁ
A teacher of prayer
How do you pray for someone who is guilty? The midrash tells how Moshe (Moses) prayed for the people after the golden calf, and who taught him the words of such a prayer.
Midrash Tanchuma (Buber): one rises to pray only in seriousness, and the forefathers prayed in awe. Moshe fell down before the Eternal to defend Israel, but the Eternal accepted his prayer only when he recalled the merit of the fathers. Then the Holy One, blessed is He, wrapped Himself in a tallit like a prayer leader and showed Moshe how to pray: "The Eternal, the Eternal, God compassionate and gracious." The righteous seek merit even for the wicked, as Avraham pleaded for Sodom. Rabbeinu Bahya brings Midrash Tehillim: Moshe left no corner of the heavens where he did not pray.
How Midrash Tanchuma (Buber) and Rabbeinu Bahya explain it
Midrash Tanchuma (Buber) Far be it from You to do such a thing (Bereshit / Genesis 18:25)
Let our teacher teach us: may one rise to pray lightheadedly? So our sages taught: one rises to pray only in seriousness. David said: "Serve the Eternal in fear, and rejoice with trembling" (Tehillim / Psalms 2:11). It happened that a man stood to read the Torah and leaned against the wall, and Rabbi Shmuel bar Nachmani made him stand up straight, so that he would not behave lightheadedly. And so you find with the forefathers of the world: when they pray, they pray in awe. For Moshe said: "And I fell down before the Eternal" (Devarim / Deuteronomy 9:18), because he was asking mercy for Israel, as it is said: "And Moshe pleaded" (Shemot / Exodus 32:11). He girded himself with prayer to come forward as the defender of Israel, and said before Him: "Master of the world, why, Eternal, does Your anger blaze against Your people? Why should the Egyptians say? Remember Avraham (Abraham), Yitzchak (Isaac) and Israel, Your servants" (Shemot / Exodus 32:11–13).
Chizkiyah bar Chiya said: it was not pleasing to the Holy One, blessed is He, until Moshe recalled the merit of the fathers. The Holy One, blessed is He, said to him: "Moshe, if they had no merit of the fathers, I would have destroyed them. Do you not know how to find merit?" Rabbi Pinchas HaKohen bar Chama said in the name of Rabbi Simon, and Rabbi Avin in the name of Rabbi Acha: what did the Holy One, blessed is He, do? He wrapped Himself in His tallit like a prayer leader who goes before the ark, and said to Moshe: "Pray before Me like this and say: 'The Eternal, the Eternal, God compassionate and gracious'" (Shemot / Exodus 34:6). As it is said: "And the Eternal passed before him and proclaimed." What does "passed" (וַיַּעֲבֹר) mean? Like one who passes before the ark in front of the congregation.
See how the righteous seek merit for the world and come forward as defenders of Israel. And not of Israel alone, but even of the wicked, as it is said: "As I live, says the Lord Eternal, I do not desire the death of the wicked" (Yechezkel / Ezekiel 33:11). Why? Perhaps he will return. Know that this is so: when the Holy One, blessed is He, wished to overturn those five cities, He consulted with Avraham, as it is said: "And the Eternal said: the outcry of Sodom and Gomorrah" (Bereshit / Genesis 18:20). And Avraham began to come forward as their defender before the Holy One, blessed is He, thinking that perhaps they would return. From where do we know? From what is read in this passage: "Far be it from You to do such a thing."
Rabbeinu Bahya And I fell down before the Eternal
And in Midrash Tehillim on the verse "A prayer of Moshe" (Tehillim / Psalms 90:1) Rabbi Berechyah says: Moshe left no corner of the heavens where he did not pray, as it is said: "And I fell down before the Eternal."
Takeaway
The words "The Eternal, the Eternal, God compassionate and gracious", which the Holy One, blessed is He, teaches Moshe, the Torah brings after the sin of the calf, when Moshe went up for the second tablets (Shemot / Exodus 34:1–7).
Avraham asked that Sodom be spared for the sake of fifty righteous people, then forty-five, and so he came down to ten (Bereshit / Genesis 18:23–32).
"Return" in the midrash means "repent": in Hebrew it is one word (תְּשׁוּבָה, "returning"), as in the verse "Return, return from your evil ways" (Yechezkel / Ezekiel 33:11).