Exodus 13:17-18 NIV
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.” So God led the people around by the desert road toward the Red Sea. The Israelites went up out of Egypt ready for battle.
NIV: New International Version