Exodus 13:17 RSVA

17 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 repent when they see war, and return to Egypt."