"And [God] rebuked the Red Sea, and it dried up. Rabbi Hunah and Rabbi Aha said: One said, 'With the blast of Your nostrils the waters were piled up,' and the other said, 'They stood upright like a heap.' And the waters were a wall to them on their right and on their left. Rabbi Judah and Rabbi Nehemiah said: Rabbi Judah said, 'Even Pharaoh did not survive, as it says, 'There was not one of them left,' while Rabbi Nehemiah said, 'Pharaoh survived by himself, as it says, 'And yet for this purpose I have spared you.' And some say that he was drowned last, as it says, 'And Pharaoh and his army sank in the sea.'
Pharaoh and Moses of Judah
Midrash Tehillim 106:5