God leads the way

17 When Pharaoh let the people go, God didn't lead them by way of the land of the Philistines, even though that was the shorter route. God thought, If the people have to fight and face war, they will run back to Egypt.

References for Exodus 13:17