Shemot5:22

וַיָּשָׁב מֹשֶׁה אֶל־יְהוָה וַיֹּאמַר אֲדֹנָי לָמָה הֲרֵעֹתָה לָעָם הַזֶּה לָמָּה זֶּה שְׁלַחְתָּנִי׃

And Moshe returned to the Eternal and said: "My Lord, why have You done evil to this people? Why is it that You sent me?

Shemot 5:22

וַיָּשָׁב מֹשֶׁה אֶל־יְהוָה

Shemot / Exodus 5:22 · Remez

Shemot 5:22

וַיָּשָׁב מֹשֶׁה אֶל־יְהוָה וַיֹּאמַר אֲדֹנָי לָמָה הֲרֵעֹתָה לָעָם הַזֶּה לָמָּה זֶּה שְׁלַחְתָּנִי׃

And Moshe returned to the Eternal and said: "My Lord, why have You done evil to this people? Why is it that You sent me?

Remez רֶמֶז

Which Name to call

Moshe addresses the Holy One with the word "Adonai" (אֲדֹנָי), "Lord", and not with the four-letter Name. And the Torah says he "returned" to the Eternal. Returned where? The choice of words here is a clue.

Ramban: "Adonai" is written with the letters alef and dalet. For the Name of the Eternal (יהוה) is the attribute of mercy, and mercy does no evil to the people. Perhaps Moshe was afraid to utter the great Name just revealed to him. Netziv: "returned" means to a holy place where he prayed regularly. "Adonai" is the Name that overrides nature. Moshe thought this trouble was the ordinary course of things: a king angry at slaves who want to break free. And he asked: let providence break nature and protect the people.

How Ramban and Haamek Davar explain it

Ramban Lord, why have You done evil

It is written with alef and dalet (אֲדֹנָי), for the unique Name, the attribute of mercy, would not do evil to the people. And above he twice named it so, with alef and dalet (4:10, 4:13), when he pleaded that anger not be kindled. Or perhaps he feared to mention the great Name of the Eternal, new to him, that spoke with him.

Haamek Davar And Moshe returned to the Eternal

That is, it was a holy place, like a synagogue, where they gathered to pray. There Moshe prayed his fixed prayer and said this prayer too. "Lord" (אֲדֹנָי) is the Name that overturns nature. "Why have You done evil": for this evil came by the way of nature, it is fitting for a king to be angry with his slaves who wish to break out of their labour. And Moshe thought there was no particular providence from Him, blessed is He, intended, but it happened of itself, as is the custom of kingdoms. Therefore he said the Name "Lord": by providence it is right to overturn nature in guarding the people, so that at least the word of the Eternal not cause further evil.

Takeaway

"Adonai" (אֲדֹנָי) is written with the letters א, ד, נ, י. The four-letter Name (יהוה) is written differently but read aloud as "Adonai".
The sages: "wherever the Name of the Eternal (יהוה) is said, it is the attribute of mercy, and wherever 'the Almighty' (אֱלֹהִים) is said, it is the attribute of judgment" (Bereshit Rabbah 33:3).