Devarim30:9

וְהוֹתִירְךָ יְהוָה אֱלֹהֶיךָ בְּכֹל מַעֲשֵׂה יָדֶךָ בִּפְרִי בִטְנְךָ וּבִפְרִי בְהֶמְתְּךָ וּבִפְרִי אַדְמָתְךָ לְטוֹבָה כִּי יָשׁוּב יְהוָה לָשׂוּשׂ עָלֶיךָ לְטוֹב כַּאֲשֶׁר־שָׂשׂ עַל־אֲבֹתֶיךָ׃

And the Eternal your Almighty will give you abundance in all the work of your hands, in the fruit of your womb, in the young of your cattle and in the fruit of your land, for good, for the Eternal will again rejoice over you for good, as He rejoiced over your fathers,

Devarim 30:9

וְהוֹתִירְךָ יְהוָה אֱלֹהֶיךָ

Devarim / Deuteronomy 30:9 · Pshat

Devarim 30:9

וְהוֹתִירְךָ יְהוָה אֱלֹהֶיךָ בְּכֹל מַעֲשֵׂה יָדֶךָ בִּפְרִי בִטְנְךָ וּבִפְרִי בְהֶמְתְּךָ וּבִפְרִי אַדְמָתְךָ לְטוֹבָה כִּי יָשׁוּב יְהוָה לָשׂוּשׂ עָלֶיךָ לְטוֹב כַּאֲשֶׁר־שָׂשׂ עַל־אֲבֹתֶיךָ׃

And the Eternal your Almighty will give you abundance in all the work of your hands, in the fruit of your womb, in the young of your cattle and in the fruit of your land, for good, for the Eternal will again rejoice over you for good, as He rejoiced over your fathers,

Pshat פְּשָׁט

A joy that will return

A parent rejoices over a child not only for successes. A special joy is when the child comes back on his own after a mistake. The commentators say why the Eternal will again rejoice over the people.

Sforno: the Eternal will rejoice over you not for the merit of the fathers, but because you yourself will return with all your heart, and then even sins will become merits. Rabbeinu Bahya: everything depends on the words "when you return", as it says: "Return to Me, and I will return to you".

How Sforno and Rabbeinu Bahya explain it

Sforno For good

What is written in this book of the Torah, as it says: "And I will walk among you, and I will be your Almighty, and you will be My people". And He will do this when He again rejoices over you for good, because you will listen, as He rejoiced over your fathers, not for the merit of the fathers. This is because your return will be with all your heart and all your soul, so that sins will be counted as merits, and you will be pleasing to Him as your fathers were.

Rabbeinu Bahya For the Eternal will again rejoice over you for good, as He rejoiced over your fathers

Perhaps this verse hints at the return of the King with the bride at the time of redemption. And the sense of the verse is: for again the Eternal will rejoice over you for good, as He rejoiced over your fathers. And the explanation of the matter: the honoured Name will give you abundance in all the work of your hands, that is, give you an advantage in good when the King returns to the Kingship, and then He will rejoice over you as He rejoiced over your fathers.

And if you ask when He will return, that is why it then says: "when you listen", "when you return", as in the verse "Return to Me, and I will return to you" (Malachi 3:7). This teaches us that the matter depends on return. And the explanation of "and I will return to you": I will return to the last letter he (ה) for your sake. And understand this.

Takeaway

"And I will walk among you" is a promise from the chapter of blessings (Vayikra / Leviticus 26:12).
"Sins will be counted as merits": so Reish Lakish teaches about return out of love (Yoma 86b).
"When you listen", "when you return" is the next verse (Devarim / Deuteronomy 30:10).
The last letter he (ה) is the last of the four letters of the Name יהוה. Rabbeinu Bahya does not unfold this hint and writes: "And understand this".