Exodus 14:2-4 Living Bible (TLB)
2 “Tell the people to turn toward Piha-hiroth between Migdol and the sea, opposite Baal-zephon, and to camp there along the shore. 3 For Pharaoh will think, ‘Those Israelites are trapped now, between the desert and the sea!’ 4 And once again I will harden Pharaoh’s heart and he will chase after you. I have planned this to gain great honor and glory over Pharaoh and all his armies, and the Egyptians shall know that I am the Lord.”
So they camped where they were told.