Devarim28:47

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

Because you did not serve the Eternal your Almighty with joy and with gladness of heart, out of the abundance of everything,

Devarim 28:47

תַּחַת אֲשֶׁר לֹא־עָבַדְתָּ

Devarim / Deuteronomy 28:47 · Drash

Devarim 28:47

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

Because you did not serve the Eternal your Almighty with joy and with gladness of heart, out of the abundance of everything,

Drash דְּרָשׁ

Service in song

Any work can be done in silence, or with a song. The Talmud looks for where the Torah says that the Temple service was accompanied by song.

The Talmud: service "with joy and with goodness of heart" is song. The words of Torah also gladden the heart, but they are not called "good". And from the word "good" the Talmud learns that first fruits too were brought with song.

How Talmud, Arakhin explain it

Talmud, Arakhin With joy and with goodness of heart

Rav Matna said: from here: "Because you did not serve the Eternal your Almighty with joy and with goodness of heart". What service is with joy and with goodness of heart? Say: this is song. But perhaps it is words of Torah, for it is written: "The precepts of the Eternal are right, gladdening the heart" (Tehillim / Psalms 19:9)? "Gladdening the heart" they are called, "good" they are not called.

Talmud, Arakhin With goodness of heart

Rav Matna said: from where do we know that first fruits require song? It is learned from "good" and "good": from here.

Takeaway

The Talmud looks for the Torah source of the Levites' song at the offerings in the Temple (Arakhin 11a). Rav Matna's answer: our verse.
"Good" and "good": the mitzvah of first fruits says "and rejoice in all the good (הַטּוֹב)" (Devarim / Deuteronomy 26:11), and here "with goodness (וּבְטוּב) of heart". One word links the two places, and song passes to the first fruits.
So this verse is tied to the start of the portion, to first fruits (the levels of verse 26:1).