Kitzur Likutei Moharan I, 65:3
When a person merits, through the master of the field, to look at the ultimate goal, then he has no pain and no suffering from anything in the world. In truth there is no evil at all in the world, only everything is good. The main pain a person has when he has some suffering, God forbid, is only because knowledge is taken from him, until he cannot look at the ultimate goal, which is entirely good. For if he merited to look at the ultimate goal, he would have no pain at all from these sufferings. For the intention of God, blessed be He, is certainly for good, whether to remind him to return in repentance, or to cleanse his sins so that he will merit eternal life. If so, the sufferings are great favors, and it would be fitting for him to be full of joy at the greatness of the good that God, blessed be He, does for him with these sufferings, if he merited to look at the good ultimate goal.
View original Hebrew
כְּשֶׁאָדָם זוֹכֶה עַל יְדֵי הַבַּעַל שָׂדֶה לְהִסְתַּכֵּל עַל הַתַּכְלִית אָז אֵין לוֹ שׁוּם צַעַר וְשׁוּם יִסּוּרִים מִכָּל דָּבָר שֶׁבָּעוֹלָם. וּבֶאֱמֶת אֵין שׁוּם רַע בָּעוֹלָם רַק כֻּלּוֹ טוֹב. וְעִקַּר הַצַּעַר שֶׁיֵּשׁ לָאָדָם כְּשֶׁיֵּשׁ לוֹ אֵיזֶה יִסּוּרִים חַס וְשָׁלוֹם הוּא רַק מֵחֲמַת שֶׁלּוֹקְחִין מִמֶּנּוּ הַדַּעַת עַד שֶׁאֵינוֹ יָכוֹל לְהִסְתַּכֵּל עַל הַתַּכְלִית שֶׁהוּא כֻּלּוֹ טוֹב. כִּי אִם הָיָה זוֹכֶה לְהִסְתַּכֵּל עַל הַתַּכְלִית לא הָיָה לוֹ שׁוּם צַעַר כְּלָל מֵהַיִּסּוּרִים הַלָּלוּ. כִּי כַּוָּנַת הַשֵּׁם יִתְבָּרַךְ בְּוַדַּאי לְטוֹבָה, אִם לְהַזְכִּירוֹ שֶׁיָּשׁוּב בִּתְשׁוּבָה, אִם לְמָרֵק עֲווֹנוֹתָיו כְּדֵי שֶׁיִּזְכֶּה לְחַיֵּי עוֹלָם. וְאִם כֵּן הַיִּסּוּרִים הֵם טוֹבוֹת גְּדוֹלוֹת, וְהָיָה רָאוּי לוֹ לִהְיוֹת מָלֵא שִׂמְחָה מִגּדֶל הַטּוֹבָה שֶׁעוֹשֶׂה לוֹ הַשֵּׁם יִתְבָּרַךְ בְּאֵלּוּ הַיִּסּוּרִים אִם הָיָה זוֹכֶה לְהִסְתַּכֵּל עַל הַתַּכְלִית הַטּוֹבRead this passage within Part I · Torah 65, in its full context