Devarim / Deuteronomy 31:6 · Drash
חִזְקוּ וְאִמְצוּ אַל־תִּירְאוּ וְאַל־תַּעַרְצוּ מִפְּנֵיהֶם כִּי יְהוָה אֱלֹהֶיךָ הוּא הַהֹלֵךְ עִמָּךְ לֹא יַרְפְּךָ וְלֹא יַעַזְבֶךָּ׃
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."
Drash דְּרָשׁ
Who goes in front
An earthly general usually stands on a hill behind his army and sends it into battle. The midrash shows that the Eternal wages war differently, and recalls a prophetess who said so aloud.
Midrash Tanchuma: the Eternal does not leave Israel, He goes out before them and wages the war Himself. So Devorah (Deborah) says to Barak: "has not the Eternal gone out before you?" A king of flesh and blood stands behind his army, but the Holy One, blessed is He, goes in front. Rabbi Berechyah: "I am with him in trouble".
How Midrash Tanchuma explain it
Midrash Tanchuma And it shall be, when you draw near to battle, the priest shall approach and speak to the people
And so it says: "And the priests, the sons of Levi, shall approach" (Devarim / Deuteronomy 21:5). Whoever serves a king, the king issues a decree to him and he carries out his decree. And the Levites serve the Holy One, blessed is He, and carry out His decrees. "Be strong and courageous, do not fear and do not be terrified of them" (Devarim / Deuteronomy 31:6). Why? "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." He does not leave you, He goes out before you and wages the war.
And so Devorah (Deborah) says to Barak: "Rise, for this is the day on which the Eternal has given Sisera into your hand, has not the Eternal gone out before you?" (Shoftim / Judges 4:14). And Barak said to her: "If you go with me, I will go" (Shoftim / Judges 4:8). She said to him: "And you need me? Has not the Eternal gone out before you?" A king of flesh and blood, his servants and his armies go out to war and he is behind them. But the Holy One, blessed is He, is not so, He goes ahead of them.
And so of David it is written: "Do not go up" and "come upon them opposite the bechaim trees. And when you hear the sound of marching in the tops of the bechaim trees, then hurry" (Shmuel II / II Samuel 5:23–24). These are trees full of thorns. Why did the Holy One, blessed is He, reveal Himself to them from the tops of the bechaim trees? Because Israel were in trouble. Rabbi Berechyah said: this is what is said: "I am with him in trouble" (Tehillim / Psalms 91:15). "For then the Eternal has gone out before you to strike the camp of the Philistines" (Shmuel II / II Samuel 5:24). So: "for the Eternal your Almighty, He is the one who goes with you". And in the world to come: "Then the Eternal will go out and fight against those nations, as when He fights on a day of battle" (Zecharyah / Zechariah 14:3). So expounded Rabbi Tanchuma bar Abba.
Takeaway
"The priest shall approach and speak to the people" (Devarim / Deuteronomy 20:2): before a war a special priest told the army "do not fear". The midrash links his words to our verse.
Devorah is a prophetess and judge, Barak a general, Sisera the commander of a Canaanite king (Shoftim / Judges 4).
Bechaim (בְּכָאִים) are trees the midrash describes as thorny. The Eternal revealed Himself to David among thorns, as to Moshe (Moses) in the thornbush: He is close when the people are in distress.
The midrash gathers three times: the wars of Yehoshua (Joshua) after the death of Moshe, the wars of David and the war at the end of days. In all of them the Eternal goes in front.