Shemot / Exodus 13:17 · Sod
וַיְהִי בְּשַׁלַּח פַּרְעֹה אֶת־הָעָם וְלֹא־נָחָם אֱלֹהִים דֶּרֶךְ אֶרֶץ פְּלִשְׁתִּים כִּי קָרוֹב הוּא כִּי אָמַר אֱלֹהִים פֶּן־יִנָּחֵם הָעָם בִּרְאֹתָם מִלְחָמָה וְשָׁבוּ מִצְרָיְמָה׃
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."
Sod סוֹד
The Pharaoh within
You decided to drop an old habit, and you even dropped it. But somewhere inside a loophole remains, just in case. Rabbi Elimelech of Lizhensk reads the opening of the parasha as a story about that loophole.
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
Noam Elimelech And it came to pass, when Pharaoh let the people go
It seems this can be explained so. "Pharaoh" (פַּרְעֹה) is the evil inclination: its letters are the letters of the word "the back of the neck" (הָעֹרֶף), because it makes a person stiff-necked. Sometimes a person is stirred to return, regrets what he has done, confesses and leaves his sins. This is "when Pharaoh let go": the person let it go from his sins. And "the people" hints at simple folk.
"And the Almighty did not lead them" means: and still there is no satisfaction (הֲנָחָה) and no comfort (נֶחָמָה) before Him, blessed is He, from the person's leaving his sins. For he holds the rope at both ends: although he holds on to good qualities, they are not whole in him.
This is "by the way of the land of the Plishtim (Philistines)". A hint: we find that the Plishtim behaved somewhat more decently (דֶּרֶךְ אֶרֶץ) than other nations. They drew Yitzchak (Isaac) close, as Avimelech said: "Behold, my land is before you". And still it says: "And the Plishtim envied him", because their goodness was not whole.
So too one who leaves his sins but does not leave them altogether. "Although it was near": this person is near to returning to his old ways. "For the Almighty said: lest the people change their minds when they see war", that is, when the war of the evil inclination rises against them, "and return to Egypt" (מִצְרָיְמָה): they will return to "the narrow strait of the sea" (מֵיצַר יָם), that is, altogether to what they were before.
Takeaway
"Pharaoh" (פַּרְעֹה) and "the back of the neck" (הָעֹרֶף) are written with the same letters: פ, ר, ע, ה. Stiff-necked in Hebrew is "hard of neck" (קְשֵׁה עֹרֶף), as the Torah calls the people (Shemot / Exodus 32:9).
Return (תְּשׁוּבָה) is repentance, a person's way back to the Creator.
Rabbi Elimelech hears "did not lead" (נָחָם) as "satisfaction" (הֲנָחָה) and "comfort" (נֶחָמָה).
"The way of the land" (דֶּרֶךְ אֶרֶץ) in Hebrew also means "decent conduct": "Good is the study of Torah together with decent conduct" (Mishnah Avot 2:2).
The words "Behold, my land is before you" Avimelech (Abimelech) said to Avraham (Abraham) (Bereshit / Genesis 20:15). With Yitzchak he made a covenant (Bereshit / Genesis 26:28–31), and "the Plishtim envied him" is said of Yitzchak (Bereshit / Genesis 26:14).
Rabbi Elimelech reads "Egypt" (מִצְרַיִם) as "the narrow strait of the sea" (מֵיצַר יָם): a place where a person is squeezed.