The Divine Presence rests only in joy
The Holy Spirit and spiritual elevation can come upon a person only when he is joyful and not when he is in sorrow.
("And you shall bring it to your father and he shall eat, so that he may bless you—for the Divine Presence rests only in joy, as it says (II Kings 3): 'And now bring me a musician.' And when the musician played, the hand of the Lord came upon him." —Midrash Aggadah (Buber) Genesis 27)
Translation
Expression (Hebrew)
אֵין הַשְּׁכִינָה שׁוֹרָה אֶלָּא מִתּוֹךְ שִׂמְחָה
Definition (Hebrew)
רוּחַ הַקֹּדֶשׁ וְהִתְרוֹמְמוּת הָרוּחַ יְכוֹלִים לָבוֹא עַל הָאָדָם רַק כַּאֲשֶׁר הוּא בְּשִׂמְחָה וְלֹא כַּאֲשֶׁר הוּא שָׁרוּי בְּעֶצֶב.
(" והבאת לְאָבִיךָ וְאָכַל בַּעֲבוּר אֲשֶׁר יְבָרֶכְךָ- שֶׁאֵין שְׁכִינָה שׁוֹרָה אֶלָּא מִתּוֹךְ שְׂמֵחָה, שֶׁנֶּאֱמַר(מְלָכִים ב ג) וְעַתָּה קְחוּ לִי מְנַגֵּן וְהָיָה כנגן המנגן ותהי עָלָיו יָד ה')."-מִדְרַשׁ אַגָּדָה (בּוּבֶּר) בְּרֵאשִׁית פֶּרֶק כז)