Now the LORD spoke to Moses, saying, “Tell the sons of Israel to turn back and camp before Pi-hahiroth, between Migdol and the sea; you shall camp in front of Baal-zephon, opposite it, by the sea. For Pharaoh will say of the sons of Israel, ‘They are wandering aimlessly in the land; the wilderness has shut them in.’ Thus I will harden Pharaoh’s heart, and he will chase after them; and I will be honored through Pharaoh and all his army, and the Egyptians will know that I am the LORD.” And they did so.
When the king of Egypt was told that the people had fled, Pharaoh and his servants had a change of heart toward the people, and they said, “What is this we have done, that we have let Israel go from serving us?” So he made his chariot ready and took his people with him; and he took six hundred select chariots, and all the other chariots of Egypt with officers over all of them. The LORD hardened the heart of Pharaoh, king of Egypt, and he chased after the sons of Israel as the sons of Israel were going out boldly. Then the Egyptians chased after them with all the horses and chariots of Pharaoh, his horsemen and his army, and they overtook them camping by the sea, beside Pi-hahiroth, in front of Baal-zephon.
As Pharaoh drew near, the sons of Israel looked, and behold, the Egyptians were marching after them, and they became very frightened; so the sons of Israel cried out to the LORD. Then they said to Moses, “Is it because there were no graves in Egypt that you have taken us away to die in the wilderness? Why have you dealt with us in this way, bringing us out of Egypt? Is this not the word that we spoke to you in Egypt, saying, ‘Leave us alone that we may serve the Egyptians’? For it would have been better for us to serve the Egyptians than to die in the wilderness.”
But Moses said to the people, “Do not fear! Stand by and see the salvation of the LORD which He will accomplish for you today; for the Egyptians whom you have seen today, you will never see them again forever. The LORD will fight for you while you keep silent.”
Then the LORD said to Moses, “Why are you crying out to Me? Tell the sons of Israel to go forward. As for you, lift up your staff and stretch out your hand over the sea and divide it, and the sons of Israel shall go through the midst of the sea on dry land. As for Me, behold, I will harden the hearts of the Egyptians so that they will go in after them; and I will be honored through Pharaoh and all his army, through his chariots and his horsemen. Then the Egyptians will know that I am the LORD, when I am honored through Pharaoh, through his chariots and his horsemen.”