Parshas Ki Savo · Passuk 27:7
And you shall slaughter peace-offerings and eat there and rejoice before Hashem your God.
Torah Temimah points to R’ Yehudah ben Beteira — Pesachim 109a.
English: It was taught: R’ Yehudah ben Beteira says: When the Temple is standing, rejoicing is only through meat, as it is stated “And you shall slaughter peace-offerings and eat there and rejoice before Hashem your God.” And now that the Temple is not standing, rejoicing is only through wine, as it is stated “And wine that gladdens the heart of man.”
Category B — Textual / lexical / linguistic method.
Method — R’ Yehudah ben Beteira derives the form of rejoicing from explicit scriptural wording: while the Temple stands, the verse links slaughtering and eating peace-offerings with rejoicing; after the Churban, a verse about wine supplies the present form of rejoicing.
Textual trigger — Deuteronomy 27:7, “וְזָבַחְתָּ שְׁלָמִים וְאָכַלְתָּ שָּׁם וְשָׂמַחְתָּ,” compared with Psalms 104:15, “וְיַיִן יְשַׂמַּח לְבַב אֱנוֹשׁ.”
In Temple times simchah was through the meat of peace-offerings; afterward, through wine.