"And the LORD said to Moses: Rise early in the morning and station yourself before Pharaoh, etc." (Exodus 9:13). "For at this time, etc." (Exodus 9:14). This is what Scripture says: "Set, O LORD, a morah over them" (Psalms 9:21) — make their faces red. What is a morah? He put into them a spirit of folly. Another interpretation: "Set, O LORD, a morah over them." Because they make themselves into lordships, make known to them that You are Lord over all of them. "Set, O LORD, a morah over them" — let the nations know that they are mortal man, while they make themselves into deities. Hiram king of Tyre made himself into a god, as it is said: "Because your heart is haughty and you have said, I am a god" (Ezekiel 28:2). The Holy One, blessed be He, made known to him that he is mortal man, for He said: "I cast you to the ground, before kings I set you, that they might gaze upon you" (Ezekiel 28:17). The Holy One, blessed be He, made known to him that he is flesh and blood. Thus: "Let the nations know that they are but mortal man. Selah" (Psalms 9:21).
Set a Morah Over Them - Pharaoh and Hiram Reduced to Mortal Flesh
Midrash Tanchuma Buber, Vaera 16:1
ויאמר ה' אל משה השכם בבקר והתיצב לפני פרעה וגו' (שמות ט יג) כי בפעם הזאת וגו' (שם שם יד) זש"ה שיתה ה' מורה להם (תהלים ט כא), האדים פניהם, מהו מורה, הכניס בהם רוח של שטות. ד"א שיתה ה' מורה להם, לפי שהן עושין עצמן מריות, הודע להם שאתה אדון על כולם, שיתה ה' מורה להם, ידעו גוים שהן אנוש, והן עושין עצמן אלוהות. חירם מלך צור עשה עצמו אלוה, שנאמר יען גבה לבך ותאמר אל אני (יחזקאל כח ב), הודיעו הקב"ה שהוא אנוש, שאמר אל ארץ השלכתיך, לפני מלכים נתתיך, לראוה בך (שם שם יז), הודיעו הקב"ה שהוא בשר ודם, הוי ידעו גוים אנוש המה סלה.