Kitzur Likutei Moharan I, 49:2
When he contracts the enthusiasm of his heart so that it does not burn too much, then an empty space remains in the heart, the aspect of "And my heart is hollow [chalal] within me", and within it his good traits are revealed, which is the secret of the creation of the worlds, which was within the empty space, as mentioned above. The main creation was through wisdom, as it is written, "In wisdom You have made them all". This is the aspect of how the main service of God, to merit good traits and good deeds, is through guarding the wisdom that is in the heart, that is, the thoughts of his heart, which are the main inclinations (yetzarim), as it is written, "And every inclination [yetzer] of the thoughts of his heart". Therefore the heart is the shaper (tzayar) of the traits, that is, the wisdom in the heart, the aspect of "the Rock [tzur] of my heart", in the aspect of "And He formed [vayyitzer]" with two yods, a formation for good and for evil, the aspect of two inclinations: that is, good thoughts are the good inclination, and bad thoughts are the evil inclination. Therefore all of a person's rectification, and his spoiling, God forbid, depends entirely on guarding the thought in the heart.
View original Hebrew
וּכְשֶׁמְּצַמְצֵם הִתְלַהֲבוּת לִבּוֹ שֶׁלּא יִבְעַר יוֹתֵר מִדַּי אֲזַי נִשְׁאָר חָלָל פָּנוּי בַּלֵּב בְּחִינַת "וְלִבִּי חָלַל בְּקִרְבִּי", וּבְתוֹכוֹ נִתְגַּלִּין מִדּוֹתָיו הַטּוֹבוֹת שֶׁהוּא סוֹד בְּרִיאַת הָעוֹלָמוֹת שֶׁהָיָה בְּתוֹךְ חָלָל הַפָּנוּי כַּנַּ"ל. וְעִקַּר הַבְּרִיאָה הָיָה עַל יְדֵי חָכְמָה כְּמוֹ שֶׁכָּתוּב "כֻּלָּם בְּחָכְמָה עָשִׂיתָ", וְזֶהוּ בְּחִינַת מַה שֶּׁעִקַּר עֲבוֹדַת ה' לִזְכּוֹת לְמִדּוֹת טוֹבוֹת וּמַעֲשִׂים טוֹבִים הוּא עַל יְדֵי שֶׁשּׁוֹמֵר הַחָכְמָה שֶׁבַּלֵּב הַיְנוּ מַחְשְׁבוֹת לִבּוֹ שֶׁזֶּהוּ עִקַּר הַיְצָרִין, כְּמוֹ שֶׁכָּתוּב "וְכָל יֵצֶר מַחְשְׁבוֹת לִבּוֹ" . עַל כֵּן הַלֵּב הוּא הַצַּיָּר שֶׁל הַמִּדּוֹת הַיְנוּ הַחָכְמָה שֶׁבַּלֵּב בְּחִינַת "צוּר לְבָבִי" בִּבְחִינַת "וַיִּיצֶר" בִּשְׁנֵי יוּדִין יְצִירָה לְטַב וּלְבִישׁ בְּחִינַת שְׁנֵי יְצָרִין הַיְנוּ מַחֲשָׁבוֹת טוֹבוֹת הֵם יֵצֶר טוֹב וּמַחֲשָׁבוֹת רָעוֹת הֵם יֵצֶר הָרָע. עַל כֵּן כָּל תִּקּוּן הָאָדָם וְקִלְקוּלוֹ חַס וְשָׁלוֹם הַכּל תָּלוּי בִּשְׁמִירַת הַמַּחֲשָׁבָה שֶׁבַּלֵּבRead this passage within Part I · Torah 49, in its full context