The Talmud discusses the blessings recited before Torah study, presenting the view that one blessing covers all Torah learning for the day, yet two distinct blessings are formulated — one for the act of engaging in Torah ('la'asok b'divrei Torah') and one for the sweetness/pleasure of Torah ('v'ha'arev na'). This sugya is the foundational source for the entire question.
מַאי מְבָרֵךְ? אָמַר רַב יְהוּדָה אָמַר שְׁמוּאֵל: ״אֲשֶׁר קִדְּשָׁנוּ בְּמִצְוֹתָיו וְצִוָּנוּ לַעֲסוֹק בְּדִבְרֵי תוֹרָה״. וְרַבִּי יוֹחָנָן מְסַיֵּים בַּהּ הָכִי ״הַעֲרֵב נָא ה׳ אֱלֹהֵינוּ אֶת דִּבְרֵי תוֹרָתְךָ בְּפִינוּ וּבְפִיפִיּוֹת עַמְּךָ בֵּית יִשְׂרָאֵל וְנִהְיֶה אֲנַחְנוּ וְצֶאֱצָאֵינוּ וְצֶאֱצָאֵי עַמְּךָ בֵּית יִשְׂרָאֵל כֻּלָּנוּ יוֹדְעֵי שְׁמֶךָ וְעוֹסְקֵי תוֹרָתֶךָ בָּרוּךְ אַתָּה ה׳ הַמְלַמֵּד תּוֹרָה לְעַמּוֹ יִשְׂרָאֵל״. וְרַב הַמְנוּנָא אָמַר: ״אֲשֶׁר בָּחַר בָּנוּ מִכׇּל הָעַמִּים וְנָתַן לָנוּ אֶת תּוֹרָתוֹ. בָּרוּךְ אַתָּה ה׳ נוֹתֵן הַתּוֹרָה״. אָמַר רַב הַמְנוּנָא: זוֹ הִיא מְעוּלָּה שֶׁבַּבְּרָכוֹת. הִלְכָּךְ לֵימְרִינְהוּ לְכוּלְּהוּ.
The Gemara clarifies: What formula of blessings does he recite? There is a dispute over the formula of the blessings as well. Rav Yehuda said that Shmuel said: The formula of this blessing is like the standard formula for blessings recited over other mitzvot: Blessed are You, Lord our God, King of the universe, Who sanctified us with his mitzvot and commanded us to engage in matters of Torah. And Rabbi Yoḥanan concludes the blessing by adding the following: Lord our God, make the words of Your Torah sweet in our mouths and in the mouths of Your people, the house of Israel, so that we and our descendants and the descendants of Your people, the house of Israel, may be those who know Your name and engage in Your Torah. Blessed are You, Lord, Who teaches Torah to His people Israel. And Rav Hamnuna said an additional formula: Who has chosen us from all the peoples and given us His Torah. Blessed are You, Lord, Giver of the Torah. With regard to this formula, Rav Hamnuna said: This concise blessing is the most outstanding of all the blessings over the Torah, as it combines thanks to God for giving us the Torah as well as acclaim for the Torah and for Israel. Since several formulas for the blessing over Torah were suggested, each with its own distinct advantage, the Gemara concludes: Therefore, let us recite them all as blessings over the Torah.