Kitzur Likutei Moharan I, 21:2
And through the aforementioned fervor one merits to drive out the spirit of impurity, the spirit of folly, and purifies his heart. For corresponding to his becoming fervent and burning for a transgression or for an evil desire, God forbid, through which his heart becomes impure, corresponding to this he must become fervent and set his heart burning for God, blessed be He. For it is the nature of fire to drive out the air, as has been clarified by observation from several things. Therefore warmth in the heart is needed, as it is written: "Every thing that may go through the fire, you shall pass through the fire." And through praying and learning with fervor, through this he will purify his heart from the spirit of folly and will merit a pure heart. And through this he will merit to speak between himself and his Maker with new words each time, which are the aspect of the holy spirit itself.
View original Hebrew
וְעַל יְדֵי הִתְלַהֲבוּת הַנַּ"ל זוֹכֶה לְגָרֵשׁ רוּחַ הַטומְאָה רוּחַ שְׁטוּת וּמְטַהֵר לִבּוֹ. כִּי נֶגֶד שֶׁנִּתְלַהֵב וְנִבְעָר לַעֲבֵרָה אוֹ לְתַאֲוָה רָעָה חַס וְשָׁלוֹם שֶׁמִּזֶּה נִטְמָא לִבּוֹ נֶגֶד זֶה צָרִיךְ שֶׁיִּתְלַהֵב וְיַבְעֵר לִבּוֹ לְהַשֵּׁם יִתְבָּרַךְ. כִּי טֶבַע הָאֵשׁ שֶׁמְּגָרֵשׁ הָאֲוִיר כְּמוֹ שֶׁנִּתְבָּרֵר בְּחוּשׁ מִכַּמָּה דְּבָרִים עַל כֵּן צָרִיךְ חֲמִימוּת שֶׁבַּלֵּב, וּכְמוֹ שֶׁכָּתוּב " כָּל דָּבָר אֲשֶׁר יָבוֹא בָאֵשׁ תַּעֲבִירוּ בָאֵשׁ . וְעַל יְדֵי זֶה שֶׁמִּתְפַּלֵּל וְלוֹמֵד בְּהִתְלַהֲבוּת עַל יְדֵי זֶה יְטַהֵר לִבּוֹ מֵרוּחַ שְׁטוּת וְיִזְכֶּה לְלֵב טָהוֹר. וְעַל יְדֵי זֶה יִזְכֶּה לְדַבֵּר בֵּינוֹ לְבֵין קוֹנוֹ בְּדִבּוּרִים חֲדָשִׁים בְּכָל פַּעַם שֶׁהֵם בְּחִינַת רוּחַ הַקּדֶשׁ מַמָּשׁRead this passage within Part I · Torah 21, in its full context