Berean Study Bible (BSB) - Exodus 13:17 >

When Pharaoh let the people go, God did not lead them along the road through the land of the Philistines, though it was shorter. For God said, “If the people face war, they might change their minds and return to Egypt.”

Jewish Publication Society of America Version (JPS1917) - Exodus 13:17 >

And it came to pass, when Pharaoh had let the people go, that God led them not by 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.'