"And with the breath of Your nostrils the waters were piled up [ne'ermu]" (Exodus 15:8). With the very measure by which they measured, You measured back to them. They said, "Come, let us deal shrewdly [nit'chakkemah] with him" (Exodus 1:10); so You too placed cunning [armumit] into the waters, and the waters waged war against them with every kind of punishment. Therefore it is said, "And with the breath of Your nostrils the waters were piled up."
The Sea Paid Egypt Back With Its Own Cunning
Yalkut Shimoni on Torah 248:1
(שמות טו ח) וּבְרוּחַ אַפֶּיךָ נֶעֶרְמוּ מַיִם. בְּמִדָּה שֶׁמָּדְדוּ בָּהּ מָדַדְתָּ לָהֶם, הֵם אָמְרוּ (שמות א, י) "הָבָה נִתְחַכְּמָה לוֹ", אַף אַתָּה נָתַתָּ עַרְמוּמִית בַּמַּיִם וְהָיוּ הַמַּיִם נִלְחָמִים בָּהֶן בְּכָל מִינֵי פֻּרְעָנוּת, לְכָךְ נֶאֱמַר וּבְרוּחַ אַפֶּיךָ נֶעֶרְמוּ מַיִם.