"Say to God, How awesome are Your deeds! Through the greatness of Your power Your enemies cringe before You" (Psalms 66:3). Rabbi Yohanan said: Say to the good Workman, well done! "How awesome are Your deeds" (ibid.) — how fearsome are Your acts of judgment: those who are slain slay their slayers, those who are crucified crucify their crucifiers, those who are sunk sink the ones who sank them. The mouth that said, "Every son that is born you shall cast into the river" (Exodus 1:22) was itself cast into the sea, "Pharaoh's chariots and his army He cast into the sea" (ibid. 15:4). The rest of the passage is as written above.
The Drowned Pharaoh and Measure for Measure at the Sea
Pesikta DeRav Kahana 11:2
[ב] אמרו לאלהים מה נורא מעשיך ברוב עוזך יכחשו לך אויביך (תהלים סו:ג). א"ר יוחנן אמרו לפעלה טבה אישר. מה נורא מעשיך (שם), מה דחילין אינון מנגנייה דידך, הנהרגין הורגין את הורגיהן, הנצלבין צולבין את צולביהן, המשתקעין משקעין את משקעיהן, הפה שאמר כל הבן הילוד היארה תשליכוהו (שמות א:כב) הושלך לים, מרכבות פרעה וחילו ירה בים (שם טו:ד). שאר קיטעה דכבת קמייה.