Devarim / Deuteronomy 31:6 · Sod
חִזְקוּ וְאִמְצוּ אַל־תִּירְאוּ וְאַל־תַּעַרְצוּ מִפְּנֵיהֶם כִּי יְהוָה אֱלֹהֶיךָ הוּא הַהֹלֵךְ עִמָּךְ לֹא יַרְפְּךָ וְלֹא יַעַזְבֶךָּ׃
Be strong and courageous, do not fear and do not be terrified of them, for the Eternal your Almighty, He is the one who goes with you. He will not let go of you and will not forsake you."
Sod סוֹד
Before, beside, behind
One can walk after the light, walk beside it, or let the light trail behind. The Chasidic masters read three words of this chapter, "before you", "with you" and again "before you", as three levels of closeness to the Eternal.
Degel Machaneh Ephraim: the highest level is when the Eternal goes before a person, the middle one beside him, the lowest behind him. The people as a whole received the middle level, and Yehoshua (Joshua), who holds the whole generation within him, the highest. Ba'al Shem Tov: the Eternal goes with you both in descent and in ascent. Even when He is hidden, it is not to push you away.
How Degel Machaneh Ephraim and Ba'al Shem Tov explain it
Degel Machaneh Ephraim He goes with you
In this portion there are several changes. First it is written: "The Eternal your Almighty, He crosses over before you" (Devarim / Deuteronomy 31:3), then it is written: "Be strong and courageous" and "the Eternal your Almighty, He is the one who goes with you", meaning side by side. And afterwards, when "Moshe (Moses) called Yehoshua (Joshua)", it is again written: "He is the one who goes before you" (Devarim / Deuteronomy 31:8). Not for nothing does the wording change three times. One can say about it: there are three levels.
The first level is when a person merits that the Eternal goes before him, as it is said at the exodus from Egypt: "And the Eternal went before them by day" (Shemot / Exodus 13:21). This shows that he is drawn after the living Almighty, all his thought cleaves to Him, and he walks in the light of the face of the King of life. Therefore this is the highest merit of all. The second level is when the Blessed One walks with him side by side, as it is said of Noach (Noah), who was righteous only in his generations: "Noach walked with the Almighty", side by side. He did not merit that highest level, and this is what Rashi explained: had he lived in the generation of Avraham, he would have been counted as nothing. And the lowest level of all is when the Blessed One walks behind a person, as it was at the sea. There the idol of Michah was with them, as it is said: "And trouble shall pass through the sea" (Zecharyah / Zechariah 10:11), and there was a great accusation: "these served idols and those served idols". Therefore "the pillar of cloud moved from before them and stood behind them" (Shemot / Exodus 14:19). And we find it plainly in the Torah: "that He not see anything shameful in you and turn back from you" (Devarim / Deuteronomy 23:15), meaning He will leave His place before you and walk behind you.
From this the changes can be understood. First, when Moshe our teacher, peace be upon him, spoke in the singular, it is written: "The Eternal your Almighty, He crosses over before you". For among Israel there is surely one special person who holds the whole generation within him, like Moshe and Yehoshua, and he merits this great level: the Eternal crosses over before him. And when he spoke to the many, "Be strong and courageous", it is written: "the Eternal goes with you", side by side. For not every person merits this great level, and he took the middle one. And afterwards, when he spoke with Yehoshua, as it is said: "And Moshe called Yehoshua", it is written: "He is the one who goes before you", for Yehoshua held the whole generation within him and merited that the Eternal crossed over before him.
And so in every generation, according to those who seek the Eternal in it, there is a righteous person who holds the whole generation within him and always secludes himself in the chambers of his heart. Even when he is busy with people in the needs of this world, he can merit this level: the Eternal always goes before him and gives him light, so that he walks day and night in holy service. And the wise will understand.
Ba'al Shem Tov The Eternal goes with you
And this means: "the Eternal goes with you" always, both in descent and in ascent. Then "He will not let go of you and will not forsake you", and in the Aramaic translation: "He will not leave you and will not distance you". That is, even when He sometimes hides, still it is not to distance you. And this is what is hinted here: "And I will surely hide" (Devarim / Deuteronomy 31:18), that is, when you set your heart to understand that it is I in the hiding. (From the book Degel Machaneh Ephraim, portion Vayeilech.)
Takeaway
Onkelos renders "He goes with you" as "He leads before you" (הוּא דִמְדַבַּר קֳדָמָךְ). The Aramaic translation already hears in this verse the highest level that Degel Machaneh Ephraim speaks of.
The idol of Michah is a story from the book of Judges (Shoftim / Judges 17). By tradition this idol crossed the sea with the people, so the angels accused: both the Egyptians and Israel served idols.
Ba'al Shem Tov cites the Aramaic translation as "will not distance you" (וְלָא יַרְחְקִנָךְ). Our text of Onkelos has "will not abandon you" (וְלָא יַרְטֵשִׁנָךְ).
"And I will surely hide My face" is verse 31:18 of this chapter. The Ba'al Shem Tov reads it together with ours: hiding, too, is a way of being near.