Deuteronomy — V'Samachta BeChagecha
Deuteronomy 16:14-15
The Torah commands 'you shall rejoice in your festival' and 'you shall be only joyful,' presenting simcha during Yom Tov as an explicit biblical obligation.
וְשָׂמַחְתָּ֖ בְּחַגֶּ֑ךָ אַתָּ֨ה וּבִנְךָ֤ וּבִתֶּ֙ךָ֙ וְעַבְדְּךָ֣ וַאֲמָתֶ֔ךָ וְהַלֵּוִ֗י וְהַגֵּ֛ר וְהַיָּת֥וֹם וְהָאַלְמָנָ֖ה אֲשֶׁ֥ר בִּשְׁעָרֶֽיךָ׃ שִׁבְעַ֣ת יָמִ֗ים תָּחֹג֙ לַיהֹוָ֣ה אֱלֹהֶ֔יךָ בַּמָּק֖וֹם אֲשֶׁר־יִבְחַ֣ר יְהֹוָ֑ה כִּ֣י יְבָרֶכְךָ֞ יְהֹוָ֣ה אֱלֹהֶ֗יךָ בְּכֹ֤ל תְּבוּאָֽתְךָ֙ וּבְכֹל֙ מַעֲשֵׂ֣ה יָדֶ֔יךָ וְהָיִ֖יתָ אַ֥ךְ שָׂמֵֽחַ׃
You shall rejoice in your festival, with your son and daughter, your male and female slave, the Levite, the stranger, the fatherless, and the widow in your communities. You shall hold a festival for the ETERNAL your God seven days, in the place that GOD will choose; for the ETERNAL your God will bless all your crops and all your undertakings, and you shall have nothing but joy.
Why it matters — The foundational biblical source for a commanded happiness, used by later authorities to derive whether joy is a mitzvah or merely a byproduct of festivity.