Kitzur Likutei Moharan I, 1:4
A person does not commit a sin unless a spirit of folly has entered him. Therefore each person, according to the sins and the blemishes that he has committed and caused, is to that same degree truly mad. That is why several kinds of madness are found in most people. And the remedy for this is engaging in Torah. For the Torah is entirely the Names of the Holy One, blessed be He, and through this one subdues the evil inclination and drives out the madness and the spirit of folly that has attached itself to a person through his sins.
View original Hebrew
אֵין אָדָם עוֹבֵר עֲבֵרָה אֶלָּא אִם כֵּן נִכְנָס בּוֹ רוּחַ שְׁטוּת. עַל כֵּן כָּל אֶחָד כְּפִי הָעֲבֵרוֹת וְהַפְּגָמִים שֶׁעָבַר וּפָגַם. כְּמוֹ כֵן הוּא מְשֻׁגָּע מַמָּשׁ. עַל כֵּן נִמְצָאִים כַּמָּה מִינֵי שִׁגָּעוֹן בְּרב בְּנֵי אָדָם. וְהַתִּקּוּן לָזֶה הוּא עֵסֶק הַתּוֹרָה. כִּי הַתּוֹרָה הִיא כֻּלָּהּ שְׁמוֹתָיו שֶׁל הַקָּדוֹשׁ בָּרוּךְ הוּא שֶׁבָּזֶה מַכְנִיעִין הַיֵּצֶר הָרָע וּמְגָרְשִׁין הַשִּׁגָּעוֹן וְהָרוּחַ שְׁטוּת שֶׁנִּדְבָּק בָּאָדָם עַל יְדֵי עֲווֹנוֹתָיו.Read this passage within Part I · Torah 1, in its full context