Exodus 13:17-18 (ASV)
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:
18 but God led the people about, by the way of the wilderness by the Red Sea: and the children of Israel went up armed out of the land of Egypt.
About Exodus 13: This chapter serves as a bridge between the Passover and the long trek through the wilderness. It contains two major instructions for the people of Israel: keeping the Feast of Unleavened Bread and redeeming the firstborn. These laws were not just rules for a season; they were to be memorials for generations. God wanted His people to never forget how He brought them out of the house of bondage. Read the study notes
2 verses · Compare in parallel · Read all of Exodus 13