"And the waters returned"—all the waters in the world returned. "And they covered the chariots and the horsemen, all the army of Pharaoh"—even Pharaoh, as it is said, "Pharaoh's chariots and his army He cast into the sea" (Exodus 15:4); these are the words of Rabbi Yehudah. Rabbi Nehemiah says: except for Pharaoh, as it is said, "But for this purpose I have raised you up" (Exodus 9:16). And there are those who say: in the end he came and was drowned, as it is said, "For the horse of Pharaoh came [into the sea]" (Exodus 15:19).
Did Pharaoh Drown in the Sea or Survive It
Mekhilta DeRabbi Shimon Ben Yochai 14:26
וישובו המים כל מים שבעולם חזרו: ויכסו את הרכב ואת הפרשים לכל חיל פרעה. אפלו פרעה שנ' (ט"ו ד') מרכבות פרעה וחילו ירה בים, דברי ר' יהודה: ר' נחמיה אומר חוץ מפרעה שנ' (ט' ט"ז) ואולם בעבור זאת העמדתיך, ויש אומרין באחרונה בא וטבע שנאמר (ט"ו י"ט) כי בא סוס פרעה: