Another interpretation: "And I will be honored through Pharaoh." The verse tells that when the Holy One, blessed be He, comes to exact judgment from the nations, His name is magnified in the world, as it is said (Isaiah 66:19), "And I will set a sign among them, and I will send from them survivors," and so forth; (Isaiah 45:14) "Thus says the LORD: the labor of Egypt and the merchandise of Cush." What does it say afterward? "Truly You are a God who hides Himself." And so it says (Ezekiel 38:22), "And I will enter into judgment with him with pestilence and with blood," and afterward (Ezekiel 38:23) "And I will magnify Myself and sanctify Myself." (Psalms 76:3-4) "And His tabernacle was in Salem," and so forth, "there He broke the flaming arrows of the bow, the shield and the sword." What does it say? "In Judah God is known, in Israel His name is great." Therefore, "and Egypt shall know that I am the LORD" (Exodus 14:4). In the past they did not know the LORD, but from here onward, "and Egypt shall know that I am the LORD." "And they did so" (Exodus 14:4): to make known the wisdom of Israel, that they did not say, "How shall we turn back?" so as not to break the hearts of the children and the women who were with them.
God's Name Is Magnified When He Judges the Nations
Yalkut Shimoni on Torah 230:11
דָּבָר אַחֵר, וְאִכָּבְדָה בְּפַרְעֹה, מַגִּיד הַכָּתוּב כְּשֶׁיָּבֹא הַקָּדוֹשׁ בָּרוּךְ הוּא לִפְרֹעַ מִן הָאֻמּוֹת שְׁמוֹ מִתְגַּדֵּל בְּעוֹלָם, שֶׁנֶּאֱמַר (ישעיה סו, יט) "וְשַׂמְתִּי בָהֶם אוֹת וְשִׁלַּחְתִּי מֵהֶם פְּלֵיטִים" וְגוֹ' (שם מה, יד) "כֹּה אָמַר ה' יְגִיעַ מִצְרַיִם וּסְחַר כּוּשׁ", אַחֲרָיו מַהוּ אוֹמֵר "אָכֵן אַתָּה אֵל מִסְתַּתֵּר", וְכֵן הוּא אוֹמֵר (יחזקאל לח, כב) "וְנִשְׁפַּטְתִּי אִתּוֹ בְּדֶבֶר וּבְדָם". אַחַר כָּךְ (שם כג) "וְהִתְגַּדִּלְתִּי וְהִתְקַדִּשְׁתִּי". (תהלים עו, ג ד) "וַיְהִי בְשָׁלֵם סוּכּוֹ" וְגוֹ', שָׁמָּה שִׁבַּר רִשְׁפֵי קָשֶׁת מָגֵן וְחֶרֶב", מַה הוּא אוֹמֵר "נוֹדָע בִּיהוּדָה אֱלֹהִים בְּיִשְׂרָאֵל גָּדוֹל שְׁמוֹ", לְכָךְ וְיָדְעוּ מִצְרַיִם כִּי אֲנִי ה', לְשֶׁעָבַר לֹא הָיוּ יוֹדְעִים אֶת ה', אֲבָל מִכָּאן וָאֵילָךְ וְיָדְעוּ מִצְרַיִם כִּי אֲנִי ה'. וַיַּעֲשׂוּ כֵן. לְהוֹדִיעַ חָכְמָתָן שֶׁל יִשְׂרָאֵל שֶׁלֹּא אָמְרוּ הֵיאַךְ אָנוּ חוֹזְרִין לַאֲחוֹרֵינוּ, שֶׁלֹּא לִשְׁבּוֹר לֵב טַף וְנָשִׁים שֶׁעִמָּם.