וַיְדַבֵּ֥ר אֱלֹהִ֖ים אֶל־מֹשֶׁ֑ה וַיֹּ֥אמֶר אֵלָ֖יו אֲנִ֥י יְהוָֽה׃
하나님이 모세에게 말씀하여 가라사대 나는 여호와로라
Rashi
וידבר אלהים אל משה AND GOD SPOKE UNTO MOSES — He took him to task because he had spoken so censoriously when he said, (Exodus 5:22) “Wherefore hast thou done so evil to this people”.
Chizkuni
אני ה, “I am the Lord;” even though I have told you that you will be elohim as far as Pharaoh is concerned, I did not mean that Pharaoh is to stand in awe of you. He too is to stand in awe of Me. Rashi understands the line as “I am the One who is certain to reward and punish as and when required.” If you were to ask how the 4-lettered tetragram conveys that G-d rewards and punishes, and that this applies to this attribute of His more so than to any other attribute, this is the meaning when He explained in Exodus 3,14-15 that the very fact of His being eternal, and enjoying a full view of past and future developments, “this enables Me to mete out both reward and punishment equitably as I can foresee the implications of all of My actions.”