Likutei Moharan· Rabbi Nachman of Breslov
Likutei Moharan I, 8:6
6. And coming to this, to separate, divide and nullify the evil from the good, is through Torah and prayer. And the study of Torah should be so as to lodge in the depth of halakhah, that is, to study the codifiers [poskim]. For in the Torah there is a hold of good and evil, which take hold from the aspect of forbidden and permitted, impure and pure, fit and unfit, that are in the Torah. And as long as he does not clarify the halakhah, it is a mixture of good and evil,
and therefore he cannot separate and nullify the evil from the good, and he is in the aspect of (Proverbs 11:27): "But he who seeks evil, it shall come upon him." Until he examines and clarifies the halakhic ruling, and clarifies the forbidden and the permitted, etc., that is, through the study of the codifiers; then he separates the good from the evil. But meriting this intellect, so that he can lodge in the depth of halakhah, is through prayer, for from there the intellect is drawn.
View original Hebrew
ו וְלָבוֹא לָזֶה, לְהַפְרִישׁ וּלְהַבְדִּיל וּלְבַטֵּל הָרָע מֵהַטּוֹב, הוּא עַל־יְדֵי תּוֹרָה וּתְפִלָּה; וְלִמּוּד הַתּוֹרָה יִהְיֶה לָלוּן לְעָמְקָהּ שֶׁל הֲלָכָה, הַיְנוּ לִלְמֹד פּוֹסְקִים, כִּי יֵשׁ בְּהַתּוֹרָה אֲחִיזַת הַטּוֹב וְהָרָע, שֶׁנֶּאֱחָזִין מִבְּחִינַת אִסּוּר וְהֶתֵּר, טָמֵא וְטָהוֹר, כָּשֵׁר וּפָסוּל, שֶׁיֵּשׁ בְּהַתּוֹרָה, וְכָל זְמַן שֶׁאֵינוֹ מְבָרֵר הַהֲלָכָה הוּא מְעֹרָב טוֹב וָרַע,
וְעַל כֵּן אֵינוֹ יָכוֹל לְהַפְרִישׁ וּלְבַטֵּל הָרַע מֵהַטּוֹב, וְהוּא בִּבְחִינַת (משלי י״א:כ״ז): וְדֹרֵשׁ רָעָה תְבוֹאֶנּוּ; עַד אֲשֶׁר הוּא מְעַיֵּן וּמְבָרֵר הַפְּסַק־הֲלָכָה, וּמְבָרֵר הָאָסוּר וְהַמֻּתָּר וְכוּ', דְּהַיְנוּ עַל־יְדֵי לִמּוּד פּוֹסְקִים, אֲזַי מַפְרִישׁ הַטּוֹב מֵהָרַע. אַךְ לִזְכּוֹת לְזֶה הַשֵּׂכֶל, שֶׁיּוּכַל לָלוּן לְעָמְקָהּ שֶׁל הֲלָכָה, הוּא עַל־יְדֵי תְּפִלָּה, כִּי מִשָּׁם נִמְשָׁךְ הַשֵּׂכֶל:Read this passage within Part I · Torah 8, in its full context