He died in the tabernacle of the Torah, he will dwell in the tabernacle of the Torah.
In the question: He devoted himself with all his soul to studying Torah. He was completely absorbed in studying Torah alone.
("Therefore, it is not good for a man, because if he were to devote his soul to the words of the Torah and to engage in it day and night, and this is what was said (Yehoshua 1) and you would meditate on it day and night" - Midrash Tanhuma (Warsha) Parashat HaAzino Simeon 3, and so: "How is it that none of the words of the Torah are fulfilled except in whom he devoted his soul to it? As it was said: This is the Torah, "A man will die in a tent (in the wilderness 19:11)" - Blessings 33:2b, and so on: "Or to marry a wise man and be clothed in his robe, and he will dwell in the tabernacle of the Torah and spread the Torah in Israel" - Hatam Sofer, the writer of Masekhet Shevuot 18:2b, and so on: "The rabbi nodded her head and said, 'For at this hour the rabbi believed that he himself would die in the tabernacle of the Torah.'" "Torah, but if his matter does not tolerate rejection, we are ready to nullify his Talmud" - Life in the Light/ Feathers, 29)
Translation
Expression (Hebrew)
הֵמִית עַצְמוֹ בַּאֲהָלָהּ שֶׁל תּוֹרָה, יָשַׁב בַּאֲהָלָהּ שֶׁל תּוֹרָה
Definition (Hebrew)
בְּהַשְׁאָלָה: הִתְמַסֵּר בְּכָל נַפְשׁוֹ לְלִמּוּד תּוֹרָה. הָיָה שָׁקוּעַ כֻּלּוֹ רַק בְּלִמּוּד תּוֹרָה בִּלְבַד.
("לְכָךְ אֵין טוֹב לָאָדָם כִּי אִם לְהָמִית עַצְמוֹ עַל דִּבְרֵי תוֹרָה וְלַעֲסֹק בָּהּ תָּמִיד יוֹמָם וָלַיְלָה, וְזֶהוּ שֶׁנֶּאֱמַר (יְהוֹשֻׁעַ א) וְהָגִיתָ בּוֹ יוֹמָם וָלַיְלָה"- מִדְרַשׁ תַּנְחוּמָא (וַרְשָׁא) פָּרָשַׁת הַאֲזִינוּ סִימָן ג, וְכֵן:"מִנַּיִן שֶׁאֵין דִּבְרֵי תוֹרָה מִתְקַיְּמִין אֶלָּא בְּמִי שֶׁמֵּמִית עַצְמוֹ עָלֶיהָ? שֶׁנֶּאֱמַר: זֹאת הַתּוֹרָה, אָדָם כִּי יָמוּת בְּאֹהֶל (בַּמִּדְבָּר יט יָד)"- בְּרָכוֹת סג ע"ב, וְכֵן:"אוֹ לְהִנָּשֵׂא לְתַלְמִיד חָכָם וְיִתְפַּרְנֵס עַל יָדָהּ, וְהוּא יוֹשֵׁב בַּאֲהָלָהּ שֶׁל תּוֹרָה וּמַרְבִּיץ תּוֹרָה בְּיִשְׂרָאֵל"- חָתַם סוֹפֵר מַסֶּכֶת שָׁבוּעוֹת יח ע"ב, וְכֵן:"הָרַבָּנִית הִנְהֲנָה בְּרֹאשָׁהּ וְאָמְרָה כִּי בְּשָׁעָה זוֹ הָרַב אָמְנָם מֵמִית עַצְמוֹ בַּאֲהָלָהּ שֶׁל תּוֹרָה, אֲבָל אִם עִנְיָנוֹ אֵינוֹ סוֹבֵל דִּחוּי, שָׁרוּי לָנוּ לְבַטְּלוֹ מִתַּלְמוּדוֹ"- חַיִּים בְּאֵר/ נוֹצוֹת, 29)