Devarim / Deuteronomy 31:6 · Remez
חִזְקוּ וְאִמְצוּ אַל־תִּירְאוּ וְאַל־תַּעַרְצוּ מִפְּנֵיהֶם כִּי יְהוָה אֱלֹהֶיךָ הוּא הַהֹלֵךְ עִמָּךְ לֹא יַרְפְּךָ וְלֹא יַעַזְבֶךָּ׃
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."
Remez רֶמֶז
Three ways of walking
In one chapter the Torah says "go" three times, each time differently: the Eternal goes with the people, goes before Yehoshua (Joshua), and Moshe (Moses) simply "went". Torah scholars see in these shades a hint at the levels of people.
Kli Yakar: the people need support, and the Eternal goes with them, holding their hand. Yehoshua needs less support, and the Eternal goes before him. And Moshe "went" alone, like the sun that shines by itself. Alshekh: Moshe says "be strong" in the plural, because strength is needed when the people are divided. When they are united, the Eternal is "with you", in the singular, and there is nothing to fear.
How Kli Yakar and Torat Moshe explain it
Kli Yakar For the Eternal your Almighty, He is the one who goes with you
We find the word "go" in this chapter in three forms. Of Israel it is written: "for the Eternal your Almighty, He is the one who goes with you". This means He holds your hand and guides you on the way you will go. Of Yehoshua (Joshua) it is written: "And the Eternal, He is the one who goes before you". And of Moshe (Moses) it says simply: "And Moshe went", without any support at all. This is like what is said of Noach (Noah), who was of little faith: "Noach walked with the Almighty" (Bereshit / Genesis 6:9). He needed support to hold him up. So too of Israel it is written: "for the Eternal your Almighty, He is the one who goes with you", for they needed support to hold them up in the fear of the Eternal.
But of Yehoshua it is said: "And the Eternal, He is the one who goes before you", and he walks after Him, for he did not need support as much as Israel. Still, he did not reach the level of the fathers, of whom it is said: "the Almighty before whom my fathers walked" (Bereshit / Genesis 48:15). This means the Shechinah was behind them. And Moshe reached this level, as it is said: "And Moshe went". This means he went alone, without any support at all. For the one who walks after the Eternal has some support, but not like the one who walks with the Eternal.
For this reason they said: "The face of Moshe was like the face of the sun" (Bava Batra 75a). As the sun receives no light from another sphere, so Moshe shone by his righteousness on his own. And Yehoshua is like the moon, which needs the support of the sun's light. And Israel are compared to the stars, for their light is small, a little here, a little there, and they need the greatest support of all. The experts on the heavens say that the circuit the stars make in seventy years the sun and moon make in one day. So the perfect ones, like Moshe and Yehoshua, acquire their world in one day: in one day they gain the wholeness that an average person can gain only in seventy years. That is the average span the Eternal set for every person to gain his wholeness in it, and sometimes "grey hair is sprinkled on him, and he does not know" (Hoshea / Hosea 7:9).
Torat Moshe Be strong and courageous
He said: you need to be strong and courageous, so as not to fear and not be terrified at the sight of them, when there is no unity among you and you count yourselves as many. That is why I said in the plural: "Be strong". But if you become one, you need nothing, for "the Eternal your Almighty is with you".
And fear will not pass over you, for the Eternal your Almighty is with you. "He will not let go of you": He will not let you weaken, and all the more not fear and lose strength. "And will not forsake you": He will be with you to strike them by your hands.
Takeaway
"And the Eternal, He is the one who goes before you" is verse 31:8 of this chapter, Moshe's words to Yehoshua. "And Moshe went" is verse 31:1.
The Shechinah is the presence of the Eternal in the world. For Kli Yakar the fathers walked ahead and the Shechinah after them, a level higher than walking after the Shechinah.
The comparison of Moshe to the sun and Yehoshua to the moon was said by the elders of that generation (Bava Batra 75a).
Alshekh reads the shift in the verse: "Be strong" is plural, "the Eternal your Almighty is with you" is singular. The singular hints at a people that has become one.