Now when Pharaoh let the people go, God did not lead them by way of the land of the Philistines, although it was nearer; for God said, "The people may have a change of heart when they see war, and return to Egypt." So God led the people roundabout, by way of the wilderness at the Sea of Reeds.
Now the Israelites went up armed out of the land of Egypt. And Moses took with him the bones of Joseph, who had exacted an oath from the children of Israel, saying, "God will be sure to take notice of you: then you shall carry up my bones from here with you."
They set out from Succoth, and encamped at Etham, at the edge of the wilderness. The Lord went before them in a pillar of cloud by day, to guide them along the way, and in a pillar of fire by night, to give them light, that they might travel day and night. The pillar of cloud by day and the pillar of fire by night did not depart from before the people.
The Lord said to Moses: Tell the Israelites to turn back and encamp before Pi-hahiroth, between Migdol and the sea, before Baal-zephon; you shall encamp facing it, by the sea. Pharaoh will say of the Israelites, "They are astray in the land; the wilderness has closed in on them." Then I will stiffen Pharaoh's heart and he will pursue them, that I may gain glory through Pharaoh and all his host; and the Egyptians shall 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 courtiers had a change of heart about the people and said, "What is this we have done, releasing Israel from our service?" He ordered his chariot and took his men with him; he took six hundred of his picked chariots, and the rest of the chariots of Egypt, with officers in all of them. The Lord stiffened the heart of Pharaoh king of Egypt, and he gave chase to the Israelites.