And since we cannot recount everything that was done in Egypt through Moses, let us set down a few of the things that were done by them after the departure of the people of Israel from Egypt. The sons of Israel, in order to escape Pharaoh and the Egyptians, passed through the midst of the sea on dry ground, and the waters were for them like a wall on the right and on the left (Exod. 14:22). Likewise, the people of the nations, in order to escape the Devil and all his followers, passed through the water of baptism. And those who previously were children of the Devil, by water and the Holy Spiri...t, who was prefigured by the pillar of fire, having been reborn, were made children of God. Therefore, the water of the sea saved the sons of Israel, but it slew Pharaoh with all his followers; because the water of baptism saves the image of God and extinguishes the sins which had been served. The Devil, however, is extinguished for each person who faithfully renounces him with all his pomps. And the waters that were for them like a wall on the right and on the left signified our faith, which we received in baptism, which is our wall, defending us on both sides, both from invisible enemies and from visible ones.
Source: Commentary on Revelation