Kitzur Likutei Moharan I, 36:3
Each person, according to his rectification, the general rectification, and his distance from sexual desire, is close to the revelation of the Torah, and likewise the opposite, God forbid. When he withstands the test and breaks the husk that precedes the fruit, for the main thing is to break this desire, then he will merit to give birth to the minds, and then the secrets of the Torah are opened to him, "the hidden things are revealed to him." Each person, according to how he withstands this test and breaks this desire, merits a great revelation in Torah and service. And according to his rectification, so he merits the seventy faces of the Torah.
View original Hebrew
וְכָל אֶחָד לְפִי תִּקּוּנוֹ תִּקּוּן הַכְּלָלִי וְרִחוּקוֹ מִתַאֲוַות נִיאוּף כֵּן הוּא קָרוֹב לְהִתְגַּלּוּת הַתּוֹרָה וְכֵן לְהֵפֶךְ חַס וְשָׁלוֹם. וּכְשֶׁיַּעֲמד בַּנִּסָּיוֹן וִישַׁבֵּר הַקְּלִפָּה שֶׁקָּדְמָה לַפְּרִי שֶׁהָעִקָּר הוּא לְשַׁבֵּר הַתַּאֲוָה הַזּאת אֲזַי יִזְכֶּה לְהוֹלִיד הַמּחִין וְאָז נִפְתָּחִין לוֹ סוֹדוֹת הַתּוֹרָה דְּמִטַּמְרִין מְגַלִּין לֵהּ. וְכָל אֶחָד כְּפִי מַה שֶּׁעוֹמֵד בְּנִסָּיוֹן זֶה וּמְשַׁבֵּר הַתַּאֲוָה הַזּאת כֵּן זוֹכֶה לְהִתְגַּלּוּת גָּדוֹל בְּתוֹרָה וַעֲבוֹדָה. וּכְפִי תִּקּוּנוֹ כָּךְ זוֹכֶה לְהַשִּׁבְעִים פָּנִים שֶׁל תּוֹרָהRead this passage within Part I · Torah 36, in its full context