Devarim / Deuteronomy 28:47
תַּחַת אֲשֶׁר לֹא־עָבַדְתָּ אֶת־יְהוָה אֱלֹהֶיךָ בְּשִׂמְחָה וּבְטוּב לֵבָב מֵרֹב כֹּל׃
Because you did not serve the Eternal your Almighty with joy and with gladness of heart, out of the abundance of everything,
Pshat פְּשָׁט
Joy as a mitzvah
Rashi: "out of the abundance of everything" means while you had every good thing. Rabbeinu Bahya: joy in doing a mitzvah is a mitzvah of its own, with a reward of its own. So the Torah punishes one who serves without joy.
How Rashi and Rabbeinu Bahya explain it
Remez רֶמֶז
Shabbat under the letters
Agra DeKala: why does it say "because" (תַּחַת אֲשֶׁר), literally "under that"? The letters that come in the alphabet right after the letters of "that" form "Shabbat" (שַׁבָּת): a hint at those who did not rejoice in Shabbat. And another hint: at the one who takes from a person the joy of Torah and service.
How Agra DeKala explain it
Drash דְּרָשׁ
Service in 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
Sod סוֹד
Joy greater than plenty
Sefat Emet in the name of the Arizal: the joy of service should be greater than the joy of all the plenty. When things are good, one serves in joy, when hard, in awe. And even suffering helps one come close to the Almighty, as salt helps an offering.
How Sefat Emet explain it