"And the LORD passed before him and proclaimed" (Exodus 34:6). Rabbi Yochanan said: Were it not written in the verse, it would be impossible to say it. This teaches that the Holy One, blessed be He, wrapped Himself like a prayer leader and showed Moses the order of the prayer. He said to him: Whenever Israel sins, let them perform before Me according to this order, and I will forgive them. "The LORD, the LORD" (Exodus 34:6) - I am He before a person sins, and I am He after a person sins and repents - "a merciful and gracious God" (Exodus 34:6).
God Guides Moses In Prayer
Rosh ha-Shanah 17b
״וַיַּעֲבוֹר ה׳ עַל פָּנָיו וַיִּקְרָא״. אָמַר רַבִּי יוֹחָנָן: אִלְמָלֵא מִקְרָא כָּתוּב, אִי אֶפְשָׁר לְאוֹמְרוֹ. מְלַמֵּד שֶׁנִּתְעַטֵּף הַקָּדוֹשׁ בָּרוּךְ הוּא כִּשְׁלִיחַ צִבּוּר, וְהֶרְאָה לוֹ לְמֹשֶׁה סֵדֶר תְּפִלָּה. אָמַר לוֹ: כׇּל זְמַן שֶׁיִּשְׂרָאֵל חוֹטְאִין — יַעֲשׂוּ לְפָנַי כַּסֵּדֶר הַזֶּה וַאֲנִי מוֹחֵל לָהֶם. ״ה׳ ה׳״ — אֲנִי הוּא קוֹדֶם שֶׁיֶּחְטָא הָאָדָם, וַאֲנִי הוּא לְאַחַר שֶׁיֶּחְטָא הָאָדָם וְיַעֲשֶׂה תְּשׁוּבָה — ״אֵל רַחוּם וְחַנּוּן״.