Devarim29:28

הַנִּסְתָּרֹת לַיהוָה אֱלֹהֵינוּ וְהַנִּגְלֹת לָנוּ וּלְבָנֵינוּ עַד־עוֹלָם לַעֲשׂוֹת אֶת־כָּל־דִּבְרֵי הַתּוֹרָה הַזֹּאת׃

The hidden things belong to the Eternal our Almighty, and the revealed things belong to us and to our children forever, to do all the words of this Torah.

Devarim 29:28

הַנִּסְתָּרֹת לַיהוָה אֱלֹהֵינוּ

Devarim / Deuteronomy 29:28 · Pshat

Devarim 29:28

הַנִּסְתָּרֹת לַיהוָה אֱלֹהֵינוּ וְהַנִּגְלֹת לָנוּ וּלְבָנֵינוּ עַד־עוֹלָם לַעֲשׂוֹת אֶת־כָּל־דִּבְרֵי הַתּוֹרָה הַזֹּאת׃

The hidden things belong to the Eternal our Almighty, and the revealed things belong to us and to our children forever, to do all the words of this Torah.

Pshat פְּשָׁט

Guarantors for one another

You cannot answer for what goes on in another person's head. But what is done in plain sight concerns you too. The Torah draws this line.

Rashi: no one knows what is hidden in another's heart, so the Eternal Himself will exact payment for secret sins. But for open sins everyone is responsible if they do not carry out justice. The dots over the words "to us and to our children" teach: even for open sins the people were not punished until they crossed the Jordan and became guarantors for one another.

How Rashi explain it

Rashi The hidden things belong to the Eternal our Almighty

And if you say: "What can we do? You punish the many for the thoughts of one, as it says: 'Perhaps there is among you a man' and so on, and afterwards: 'when they see the blows of that land'. Surely a person does not know what is hidden in another!" I do not punish you for the hidden things: they belong to the Eternal our Almighty, and He will exact payment from that one person. But the revealed things belong to us and to our children: to remove the evil from our midst. And if we do not carry out justice on them, the many will be punished.

There are dots over the words "to us and to our children", for an interpretation: even for the revealed things He did not punish the many until they crossed the Jordan, from the time they took the oath upon themselves at Mount Gerizim and at Mount Ebal and became guarantors for one another.

Takeaway

"Perhaps there is among you a man" and "when they see the blows of that land" are verses of this same chapter (Devarim / Deuteronomy 29:17 and 29:21). It seems that because of one person's secret sin the whole land suffers. Rashi answers: for what is hidden only the person himself is responsible.
In the Torah scroll there are dots over the words לָנוּ וּלְבָנֵינוּ ("to us and to our children") and over the letter ע in the word עַד ("forever"). The sages interpret such dots (Sanhedrin 43b).
Moshe (Moses) commanded the oath at Mounts Gerizim and Ebal (Devarim / Deuteronomy 27:11–26), and the people carried it out after crossing the Jordan (Yehoshua / Joshua 8:30–35).
From here the rule: "All of Israel are guarantors for one another" (Shevuot 39a).