Kitzur Likutei Moharan I, 62:6
Also, through the study of the codifiers one merits to pray properly with all his heart. For the main obstacle to prayer, that one does not pray with proper devotion, is only because faith is not complete and his heart is divided from God, blessed be He. For in truth, if a person knew and believed with a whole heart that the whole earth is full of His glory, and that He, blessed be He, stands over him at the time of prayer and hears and listens and pays attention to every single word of the prayer, he would certainly be very careful to direct his words, and would pray with great fervor. Only because his heart is divided and he is not strong in this knowledge with a whole heart, because of this he is not so careful and does not direct his heart well in his prayer. All this is drawn from the questions and heresies in the heart mentioned above, which are the aspect of the strife of the evil inclination in the heart. Therefore, through the study of the codifiers, through which the strife of the evil inclination is nullified at its root as mentioned above, through this one merits to pray properly, with all his heart, in truth. This is "I will thank You with uprightness of heart (levav)," levav specifically, with both inclinations. When? "When I learn Your righteous judgments," as mentioned above.
View original Hebrew
גַּם עַל יְדֵי לִמּוּד הַפּוֹסְקִים זוֹכֶה לְהִתְפַּלֵּל כָּרָאוּי בְּכָל לְבָבוֹ. כִּי עִקַּר מְנִיעַת הַתְּפִילָּה שֶׁאֵינוֹ מִתְפַּלֵּל בְּכַוָּנָה כָּרָאוּי הוּא רַק מֵחֲמַת שֶׁאֵין הָאֱמוּנָה בִּשְׁלֵמוּת וְלִבּוֹ חָלוּק מֵהַשֵּׁם יִתְבָּרַךְ. כִּי בֶּאֱמֶת אִם הָיָה הָאָדָם יוֹדֵעַ וּמַאֲמִין בְּלֵב שָׁלֵם שֶׁמְּלא כָל הָאָרֶץ כְּבוֹדוֹ וְהוּא יִתְבָּרַךְ עוֹמֵד עָלָיו בִּשְׁעַת הַתְּפִילָּה וְשׁוֹמֵעַ וּמַאֲזִין וּמַקְשִׁיב כָּל דִּבּוּר וְדִבּוּר שֶׁל הַתְּפִילָּה, בְּוַדַּאי הָיָה מְדַקְדֵּק מְאד לְכַוֵּן אֶת דְּבָרָיו וְהָיָה מִתְפַּלֵּל בְּהִתְלַהֲבוּת גָּדוֹל. רַק מֵחֲמַת שֶׁלִּבּוֹ חָלוּק וְאֵינוֹ חָזָק בִּידִיעָה זאת בְּלֵב שָׁלֵם בִּשְׁבִיל זֶה אֵינוֹ מְדַקְדֵּק כָּל כָּךְ וְאֵינוֹ מְכַוֵּן לִבּוֹ הֵיטֵב בִּתְפִילָּתוֹ. וְכָל זֶה נִמְשָׁךְ מֵהַקֻּשְׁיוֹת וְהַכְּפִירוֹת שֶׁבַּלֵּב הַנַּ"ל שֶׁהֵם בְּחִינַת מַחֲלקֶת הַיֵּצֶר הָרָע שֶׁבַּלֵּב. וְעַל כֵּן עַל יְדֵי לִמּוּד הַפּוֹסְקִים שֶׁעַל יְדֵי זֶה מְבַטְּלִין מַחֲלקֶת הַיֵּצֶר הָרָע בְּשָׁרְשׁוֹ כַּנַּ"ל עַל יְדֵי זֶה זוֹכֶה לְהִתְפַּלֵּל כָּרָאוּי בְּכָל לְבָבוֹ בֶּאֱמֶת. וְזֶה "אוֹדְךָ בְּישֶׁר לֵבָב" 'לֵבָב' דַּיְקָא בִּשְׁנֵי יְצָרִין אֵימָתַי "בְּלָמְדִי מִשְׁפְּטֵי צִדְקֶךָ" כַּנַּ"לRead this passage within Part I · Torah 62, in its full context