Shemot 13:17

17 And it came to pass, when Pharaoh had let the people go, that Elohim led them not through the derech of the eretz of the Pelishtim (Philistines), although that was near; for Elohim said, Lest perhaps the people change their mind when they see milchamah, and they return to Mitzrayim;