Exodus 13:17-14:14
17 When Pharaoh let the people go, God did not lead them along the road to the land of the Philistines, even though it was nearby; for God said, “The people will change their minds and return to Egypt if they face war.” 18 So he led the people around toward the Red Sea along the road of the wilderness. And the Israelites left the land of Egypt in battle formation.
19 Moses took the bones of Joseph with him, because Joseph had made the Israelites swear a solemn oath, saying, “God will certainly come to your aid; then you must take my bones with you from this place.”
20 They set out from Succoth and camped at Etham on the edge of the wilderness. 21 The Lord went ahead of them in a pillar of cloud to lead them on their way during the day and in a pillar of fire to give them light at night, so that they could travel day or night. 22 The pillar of cloud by day and the pillar of fire by night never left its place in front of the people.
14 Then the Lord spoke to Moses: 2 “Tell the Israelites to turn back and camp in front of Pi-hahiroth, between Migdol and the sea; you must camp in front of Baal-zephon, facing it by the sea. 3 Pharaoh will say of the Israelites: They are wandering around the land in confusion; the wilderness has boxed them in. 4 I will harden Pharaoh’s heart so that he will pursue them. Then I will receive glory by means of Pharaoh and all his army, and the Egyptians will know that I am the Lord.” So the Israelites did this.
5 When the king of Egypt was told that the people had fled, Pharaoh and his officials changed their minds about the people and said, “What have we done? We have released Israel from serving us.” 6 So he got his chariot ready and took his troops with him; 7 he took six hundred of the best chariots and all the rest of the chariots of Egypt, with officers in each one. 8 The Lord hardened the heart of Pharaoh king of Egypt, and he pursued the Israelites, who were going out defiantly. 9 The Egyptians—all Pharaoh’s horses and chariots, his horsemen, and his army—chased after them and caught up with them as they camped by the sea beside Pi-hahiroth, in front of Baal-zephon.
10 As Pharaoh approached, the Israelites looked up and there were the Egyptians coming after them! The Israelites were terrified and cried out to the Lord for help. 11 They said to Moses, “Is it because there are no graves in Egypt that you have taken us away to die in the wilderness? What have you done to us by bringing us out of Egypt? 12 Isn’t this what we told you in Egypt: Leave us alone so that we may serve the Egyptians? It would have been better for us to serve the Egyptians than to die in the wilderness.”
13 But Moses said to the people, “Don’t be afraid. Stand firm and see the Lord’s salvation that he will accomplish for you today; for the Egyptians you see today, you will never see again. 14 The Lord will fight for you, and you must be quiet.”