Exodus 14:1-4
The Victory at the Red Sea
14:1 The Lord spoke to Moses:
14:2 “Tell the Israelites that they must turn and camp before Pi-hahiroth, between Migdol and the sea; you are to camp by the sea before Baal Zephon opposite it.
14:3 Pharaoh will think regarding the Israelites, ‘They are wandering around confused in the land – the desert has closed in on them.’
14:4 I will harden Pharaoh’s heart, and he will chase after them. I will gain honor because of Pharaoh and because of all his army, and the Egyptians will know that I am the Lord.” So this is what they did.