Kitzur Likutei Moharan I, 31:18
The general principle is that longing and yearning for something holy is very precious, for through them the soul comes into being, and it is completed through speech, as mentioned above. This soul goes out and wanders, and sometimes the holy soul wanders and comes into a wicked person, and thoughts of repentance fall upon him, and it can bring him back to the good. Likewise, the opposite: how much evil the longings for something that is not good cause, God forbid. For the soul that comes into being through bad longings sometimes wanders into a tzaddik and can cause him to sin, God forbid. This is the aspect of "There is a vanity [hevel]" etc., the aspect of the breath [hevel] of the mouth, from which the souls go out. Through this there are tzaddikim to whom it happens according to the deeds of the wicked: because a soul from bad longings wanders into them, from which thoughts of sin fall upon him. But afterwards it is possible that it will cause him to sin, God forbid, or that he will rectify the soul. Likewise, the opposite: there are wicked people to whom it happens according to the deeds of the righteous, for thoughts of repentance certainly fall upon him at the time that a holy soul from holy longings reaches him. But afterwards it is possible that he will spoil the soul, or that it will bring him back to the good. This is the aspect of the transmigrations of souls that go out from speech and wander in the world.
View original Hebrew
וּכְלַל הַדָּבָר שֶׁמְּאד יָקָר הַכִּסּוּפִין וְהַהִשְׁתּוֹקְקוּת לְדָבָר שֶׁבִּקְדֻשָּׁה כִּי עַל יָדָם נִתְהַוָּה הַנֶּפֶשׁ וְנִגְמֶרֶת עַל יְדֵי הַדִּבּוּר כַּנַּ"ל. וְזאת הַנֶּפֶשׁ יוֹצְאָה וּמִתְגַּלְגֶּלֶת וְלִפְעָמִים מִתְגַּלְגֶּלֶת וּבָאָה הַנֶּפֶשׁ דִּקְדֻשָּׁה לְתוֹךְ הָרָשָׁע וְנוֹפְלִין לוֹ הִרְהוּרֵי תְּשׁוּבָה וְתוּכַל לְהַחֲזִירוֹ לְמוּטָב. וְכֵן לְהֵפֶךְ כַּמָּה רָעוֹת גּוֹרְמִים הַכִּסּוּפִים לְדָבָר שֶׁאֵינוֹ טוֹב, חַס וְשָׁלוֹם. כִּי הַנֶּפֶשׁ שֶׁנִּתְהַוָּה עַל יְדֵי כִּסּוּפִים רָעִים מִתְגַּלְגֶּלֶת לִפְעָמִים לְתוֹךְ הַצַּדִּיק וְתוּכַל לְהַחֲטִיאוֹ, חַס וְשָׁלוֹם. וְזֶה בְּחִינַת "יֵשׁ הֶבֶל" וְגוֹ' בְּחִינַת הֶבֶל פֶּה שֶׁמִּשָּׁם יוֹצְאִים הַנְּפָשׁוֹת וְעַל יְדֵי זֶה יֵשׁ צַדִּיקִים שֶׁמַּגִּיעַ אֲלֵיהֶם כְּמַעֲשֵׂה הָרְשָׁעִים. עַל יְדֵי שֶׁמִּתְגַּלְגֶּלֶת לְתוֹכָן נֶפֶשׁ מִכִּסּוּפִים רָעִים שֶׁנּוֹפְלִים לוֹ מִזֶּה הִרְהוּרֵי עֲבֵרָה אַךְ אַחַר כָּךְ אֶפְשָׁר שֶׁתַּחֲטִיאוֹ, חַס וְשָׁלוֹם אוֹ שֶׁיְּתַקֵּן הַנֶּפֶשׁ. וְכֵן לְהֵפֶךְ יֵשׁ רְשָׁעִים שֶׁמַּגִּיעַ אֲלֵיהֶם כְּמַעֲשֵׂה הַצַּדִּיקִים שֶׁנּוֹפְלִים לוֹ בְּוַדַּאי הִרְהוּרֵי תְּשׁוּבָה בְּעֵת שֶׁהִגִּיעַ אֵלָיו נֶפֶשׁ קְדוֹשָׁה מִכִּסּוּפִים קְדוֹשִׁים, אַךְ אַחַר כָּךְ אֶפְשָׁר שֶׁיְּקַלְקֵל הַנֶּפֶשׁ אוֹ שֶׁתַּחֲזִירֵנוּ לְמוּטָב. וְזֶה בְּחִינַת גִּלְגּוּלֵי הַנְּפָשׁוֹת שֶׁיּוֹצְאִים מֵהַדִּבּוּר וּמִתְגַּלְגְּלִים בָּעוֹלָםRead this passage within Part I · Torah 31, in its full context