Likutei Etzot, Knowledge 17
And even if he has already broken the imagination and thereby established the disposition of his intellect, nevertheless the intellect is still in potential. He must make use of his intellect, that is, inquire and think with it in the service of God. Then, when he inquires with his intellect and makes use of it, he brings the intellect out from potential into actuality. Afterwards, when he attains with his intellect all that is within human power to attain, this is what remains of him after death. The essence of a person's endurance after his death is nothing but this holy intellect which he acquired and attained in Torah and divine service. (ibid.)
View original Hebrew
וַאֲפִלּוּ אִם כְּבָר שִׁבֵּר הַמְדַמֶּה וּבָזֶה הֵקִים אֶת תְּכוּנַת שִׂכְלוֹ, עִם כָּל זֶה הַשֵּׂכֶל עֲדַיִן בְּכֹחַ. וְצָרִיךְ לְהִשְׁתַּמֵּשׁ בְּשִׂכְלוֹ, הַיְנוּ לַחֲקֹר וְלַחֲשֹׁב בּוֹ בַּעֲבוֹדַת ה'. וְאָז כְּשֶׁחוֹקֵר בְּשִׂכְלוֹ וּמִשְׁתַּמֵּשׁ בּוֹ, אֲזַי הוּא מוֹצִיא הַשֵּׂכֶל מִן הַכֹּחַ אֶל הַפֹּעַל. וְאַחַר כָּךְ כְּשֶׁמַּשִּׂיג בְּשִׂכְלוֹ כָּל מַה שֶּׁיֵּשׁ בְּיַד אֱנוֹשִׁי לְהַשִּׂיג, זֶהוּ הַשְׁאָרוֹתָיו לְאַחַר מִיתָה. וְעִקַּר קִיּוּמוֹ שֶׁל אָדָם לְאַחַר מִיתָתוֹ אֵינוֹ אֶלָּא זֶה הַשֵּׂכֶל דִּקְדֻשָּׁה, שֶׁקָּנָה וְהִשִּׂיג בְּתוֹרָה וַעֲבוֹדָה: (שם)