Kitzur Likutei Moharan I, 36:8
This is a great principle: for "Out of the mouth of the Most High do not proceed evil and good", but only simple light. However, according to the aspect of the vessel that receives the light, so the light takes form within it. For the simple light that comes from Above is the aspect of kamatz, closed, but according to the aspect of the vessel of the recipients it is the aspect of tzeirei, for the light takes form (nitztayer) according to the aspect of the vessel. If the vessel is whole, he receives in the aspect of "me'orot" (lights) written full; and if, God forbid, the opposite, he receives in the aspect of "me'erat" (curse) written without the vav, as it is written, "The curse [me'erat] of God is in the house of the wicked". For this reason Balaam advised Balak to make them stumble in a matter of immorality, in order to spoil their vessels, for through sexual desire one blemishes the minds and can become actually insane, God forbid. According to the wise physicians, castration is a cure for the insane. This is the ascent of Yesod up to Abba and Imma, the aspect of "My Name, yod heh, testifies about them," the aspect of the minds.
View original Hebrew
וְזֶה הוּא כְּלָל גָּדוֹל כִּי "מִפִּי עֶלְיוֹן לא תֵצֵא הָרָעוֹת וְהַטּוֹב" כִּי אִם אוֹר פָּשׁוּט, אַךְ כְּפִי בְּחִינַת הַכְּלִי הַמְקַבֵּל אֶת הָאוֹר כָּךְ נִצְטַיֵּר הָאוֹר בְּתוֹכוֹ. כִּי אוֹר הַפָּשׁוּט הַבָּא מִלְמַעְלָה הוּא בְּחִינַת קָמַץ וְסָתוּם אַךְ כְּפִי בְּחִינַת הַכְּלִי מֵהַמְקַבְּלִים הוּא בְּחִינַת צֵירֶי שֶׁנִּצְטַיֵּר הָאוֹר לְפִי בְּחִינַת הַכְּלִי. אִם הוּא בִּשְׁלֵמוּת אָז מְקַבֵּל בִּבְחִינַת מְאוֹרוֹת מָלֵא וְאִם חַס וְשָׁלוֹם לְהֶפֶךְ אֲזַי מְקַבֵּל בִּבְחִינַת מְארת חָסֵר וָאו כְּמוֹ שֶׁכָּתוּב "מְאֵרַת ה' בְּבֵית רָשָׁע" . וּבִשְׁבִיל זֶה יָעַץ בִּלְעָם לְבָלָק לְהַכְשִׁילָם בִּדְבַר עֶרְוָה כְּדֵי לְקַלְקֵל כְּלֵיהֶם שֶׁעַל יְדֵי תַאֲוַות נִיאוּף פּוֹגֵם הַמּחִין וְיָכוֹל לִהְיוֹת מְשֻׁגָּע מַמָּשׁ חַס וְשָׁלוֹם. וְעַל פִּי חַכְמֵי הָרוֹפְאִים הַסֵּרוּס הוּא רְפוּאָה לִמְשֻׁגָּע. וְזֶה הוּא סִלּוּקָא דִּיסוֹדָא עַד אַבָּא וְאִמָּא בְּחִינַת שְׁמִי יוּד קֵא מֵעִיד עֲלֵיהֶם בְּחִינַת הַמּחִיןRead this passage within Part I · Torah 36, in its full context