Kitzur Likutei Moharan I, 1:7
A Jew must always look at the intellect within every thing, and bind himself to the wisdom and the intellect that is in every thing, so that the intellect that is in every thing will shine for him, to draw close to God, blessed be He, through that very thing. For the main vitality that is in every thing is only the intellect and the wisdom, as it is written, "Wisdom gives life, etc.". And the intellect is a great light and shines for a person in all his ways like the sun. And even when a person sometimes comes to a place that is gloomy and dark, God forbid, nevertheless, when he merits to look at the intellect and the vitality that is in every thing, then the intellect shines for him and brings him close to God, blessed be He. This is the aspect of how Joseph merited to withstand his test, by looking at the intellect that is in every thing.
View original Hebrew
אִישׁ הַיִּשְׂרְאֵלִי צָרִיךְ תָּמִיד לְהִסְתַּכֵּל בְּהַשֵׂכֶל שֶׁל כָּל דָּבָר וּלְקַשֵּׁר עַצְמוֹ אֶל הַחָכְמָה וְהַשֵׂכֶל שֶׁיֵּשׁ בְּכָל דָּבָר, כְּדֵי שֶׁיָּאִיר לוֹ הַשֵׂכֶל שֶׁיֵּשׁ בְּכָל דָּבָר לְהִתְקָרֵב לְהַשֵּׁם יִתְבָּרַךְ עַל יְדֵי אוֹתוֹ הַדָּבָר, כִּי עִקַּר הַחִיּוּת שֶׁיֵּשׁ בְּכָל דָּבָר הוּא רַק הַשֵׂכֶל וְהַחָכְמָה. כְּמוֹ שֶׁכָּתוּב הַחָכְמָה תְּחַיֶּה וְכוּ'. וְהַשֵׂכֶל הוּא אוֹר גָּדוֹל וּמֵאִיר לְהָאָדָם בְּכָל דְּרָכָיו כְּמוֹ הַשֶּׁמֶשׁ. וַאֲפִילּוּ כְּשֶׁבָּא הָאָדָם לִפְעָמִים לְמָקוֹם שֶׁהוּא אָפֵל וָחֹשֶׁךְ חַס וְשָׁלוֹם אַף עַל פִּי כֵן כְּשֶׁזּוֹכֶה לְהִסְתַּכֵּל עַל הַשֵׂכֶל וְהַחִיּוּת שֶׁיֵּשׁ בְּכָל דָּבָר אֲזַי מֵאִיר לוֹ הַשֵׂכֶל וּמְקָרֵב אוֹתוֹ לְהַשֵּׁם יִתְבָּרַךְ שֶׁזֶּה בְּחִינַת מַה שֶּׁזָּכָה יוֹסֵף לַעֲמד בְּנִסְיוֹנוֹ עַל יְדֵי שֶׁהִסְתַּכֵּל עַל הַשֵׂכֶל שֶׁיֵּשׁ בְּכָל דָּבָר.Read this passage within Part I · Torah 1, in its full context