Devarim / Deuteronomy 31:21 · Sod
וְהָיָה כִּי־תִמְצֶאןָ אֹתוֹ רָעוֹת רַבּוֹת וְצָרוֹת וְעָנְתָה הַשִּׁירָה הַזֹּאת לְפָנָיו לְעֵד כִּי לֹא תִשָּׁכַח מִפִּי זַרְעוֹ כִּי יָדַעְתִּי אֶת־יִצְרוֹ אֲשֶׁר הוּא עֹשֶׂה הַיּוֹם בְּטֶרֶם אֲבִיאֶנּוּ אֶל־הָאָרֶץ אֲשֶׁר נִשְׁבָּעְתִּי׃
And when many evils and troubles befall it, this song shall testify before it as a witness, for it will not be forgotten from the mouths of its offspring. For I know its inclination, how it acts already today, before I have brought it into the land which I swore."
Sod סוֹד
A witness in the dark
In the darkest hours a person feels alone. The Chasidic masters say that thinking so is already a mistake, and name the witness that will answer this thought: the Torah that sounds in the mouth.
Sefat Emet: when the hiding itself is hidden, the people say "my Almighty is not among me". The rabbi of Peshischa taught that this is a sin: one must believe the Eternal is with us in trouble. The Torah is light, and darkness does not put it out. The very fact that the Torah is not forgotten testifies that the Shechinah is in Israel, and the light of Torah in each heart testifies to its closeness.
How Sefat Emet explain it
Sefat Emet This song shall testify before it as a witness, for it will not be forgotten from the mouths of its offspring
For it is written: "And I will surely hide", and we explained that the hiding itself will be hidden, and they will say: "Is it not because my Almighty is not among me" and so on. And I heard in the name of the holy rabbi of Peshischa, of blessed memory, that this is counted as a sin, for one must believe that the Blessed One is with us in trouble. And through the Torah and this song one can make this clear: the Blessed One is with us. And this is what is said: "This song shall testify" and "as a witness": through the Torah one can make everything clear, for the Torah is light. And darkness cannot darken the light of the Torah, as it is said: "A sin puts out a commandment, but does not put out Torah" (Sotah 21a).
And this very "it will not be forgotten from the mouths of its offspring" is a testimony that the Blessed One is with us, as our sages, of blessed memory, said of the Tabernacle of testimony: it is a testimony that the Shechinah rests in Israel. So it was in the tablets, and so in the whole Torah, in the whole people of Israel. And so also in each one alone: when the light of the Torah is revealed in the heart of a person of Israel, it is a testimony to at least the small closeness he has, as said above.
Takeaway
"And I will surely hide" is verse 31:18 of this chapter. Sefat Emet explained it as a double hiding: a person no longer sees that the Eternal is hidden and decides He is not there.
The rabbi of Peshischa is a Chasidic master in Poland. Here it is probably Rabbi Simcha Bunem of Peshischa. This is an assumption: the text does not give the name.
Of the Tabernacle of testimony (Shemot / Exodus 38:21) the Talmud says: it is a testimony to all the world that the Shechinah rests in Israel (Shabbat 22b).