Shemot13:17

וַיְהִי בְּשַׁלַּח פַּרְעֹה אֶת־הָעָם וְלֹא־נָחָם אֱלֹהִים דֶּרֶךְ אֶרֶץ פְּלִשְׁתִּים כִּי קָרוֹב הוּא כִּי אָמַר אֱלֹהִים פֶּן־יִנָּחֵם הָעָם בִּרְאֹתָם מִלְחָמָה וְשָׁבוּ מִצְרָיְמָה׃

And it came to pass, when Pharaoh let the people go, that the Almighty did not lead them by the way of the land of the Plishtim (Philistines), although it was near, for the Almighty said: "Lest the people change their minds when they see war, and return to Egypt."

Shemot 13:17

וַיְהִי בְּשַׁלַּח פַּרְעֹה

Shemot / Exodus 13:17

וַיְהִי בְּשַׁלַּח פַּרְעֹה אֶת־הָעָם וְלֹא־נָחָם אֱלֹהִים דֶּרֶךְ אֶרֶץ פְּלִשְׁתִּים כִּי קָרוֹב הוּא כִּי אָמַר אֱלֹהִים פֶּן־יִנָּחֵם הָעָם בִּרְאֹתָם מִלְחָמָה וְשָׁבוּ מִצְרָיְמָה׃

And it came to pass, when Pharaoh let the people go, that the Almighty did not lead them by the way of the land of the Plishtim (Philistines), although it was near, for the Almighty said: "Lest the people change their minds when they see war, and return to Egypt."

Pshat פְּשָׁט

The short road is not the best one

Rashi: "did not lead" means "did not guide". The road through the land of the Plishtim was near, and it was just as easy to go back by it to Egypt. Seeing war, the people would have turned back: even on the roundabout road they said "let us return to Egypt". Rashbam: it was the straight road into the land of Kenaan, and the wars there would have broken the people.

How Rashi and Rashbam explain it

Remez רֶמֶז

"And it came to pass": "woe was"

Agra DeKala: the Talmud reads the word "and it came to pass" as "woe was". Woe came because Pharaoh let a mixed multitude go along with Israel: without them there would have been no golden calf and many troubles. Or woe came because the accusation against Israel still stood, and the redemption was completed only at the sea.

How Agra DeKala explain it

Drash דְּרָשׁ

Pharaoh sees them off

Midrash Tanchuma: "let go" means "escorted". The mouth that said "I will not let go" said "I will let you go", and for this an Egyptian may not be abhorred. The mouth that said "I do not know the Eternal" said "the Eternal is righteous", and for this the Egyptians received burial. Tanchuma (Buber): whoever hardened himself against the Holy One, blessed is He, did not come out whole, and Pharaoh let the people go only after the plague of the firstborn.

How Midrash Tanchuma and Midrash Tanchuma (Buber) explain it

Sod סוֹד

The Pharaoh within

Rabbi Elimelech of Lizhensk: Pharaoh is the evil inclination, which makes a person stiff-necked. A person repented and let it go, but holds the rope at both ends: his good qualities are not yet whole. So he is close to going back to what he was, and at the first war with the evil inclination he will return to his "narrow strait".

How Noam Elimelech explain it