Exodus 13:17

Crossing the Sea

17 When Pharaoh let the people go, God did not lead them on the road through the Philistine country, though that was shorter. For God said, “If they face war, they might change their minds and return to Egypt.”

Read Exodus 13:17 Using Other Translations

And it came to pass, when Pharaoh had let the people go, that God led them not through the way of the land of the Philistines, although that was near; for God said, Lest peradventure the people repent when they see war, and they return to Egypt:
When Pharaoh let the people go, God did not lead them by way of the land of the Philistines, although that was near. For God said, "Lest the people change their minds when they see war and return to Egypt."
When Pharaoh finally let the people go, God did not lead them along the main road that runs through Philistine territory, even though that was the shortest route to the Promised Land. God said, “If the people are faced with a battle, they might change their minds and return to Egypt.”