(Exodus 4:21:) "And the LORD said to Moses: When you go to return to Egypt." The Holy One, blessed be He, showed him the miracles that He was destined to perform for him. And He had said to him (Exodus 3:16): "Go and gather the elders of Israel," and so forth, and afterward you are to go to Pharaoh. Moses said: If they say to me (Exodus 3:13), "What is His name?", what shall I say to them? He said to him: Say to them (Exodus 3:14), "I am that I am."
Moses Sent to Pharaoh and the Name I Am That I Am
Midrash Tanchuma Buber, Shemot 20:3
ויאמר ה' אל משה בלכתך לשוב מצרימה (שם שם כא). הראה לו הקב"ה נסים שהוא עתיד לעשות לו, ואמר לו לך ואספת את זקני ישראל וגו' (שם ג טז), ואח"כ אתם הולכים אצל פרעה, אמר משה אם יאמרו לי מה שמו מה אומר אליהם (שם שם יג), אמר לו אמור להם אהיה אשר אהיה (שם שם יד).