What does Deuteronomy 16:17 mean?
Celebrate for seven days at the place God chooses, because He will bless your harvest and all your work. So be completely joyful. Deuteronomy 16:17 - Modern Text Bible
(The festival is a response to God’s blessing, and joy is the natural result.)