Kitzur Likutei Moharan I, 41:1
Dancing for the sake of a commandment: for example, one who drinks wine on Shabbat and festivals, or at a wedding that is a commandment, or at other meals of a commandment, and he drinks in moderation and his intention is for the sake of Heaven, to merit the joy of Israel, to rejoice in God, blessed be He, who chose us from all the peoples etc. He is aroused to joy through this, until the joy is drawn into the feet, that is, he dances out of joy. Through this he drives away the external forces that take hold in the feet, sweetens and nullifies all the judgments, and merits to receive all the blessings. This enthusiasm of the dancing is "a fire-offering, a pleasing fragrance to God". But one who dances with the enthusiasm of the evil inclination, that is the aspect of "strange fire", and the wine that he drank is the aspect of intoxicating wine, from which the external forces take hold, God forbid.
View original Hebrew
רִקּוּדִין שֶׁל מִצְוָה כְּגוֹן שֶׁשּׁוֹתֶה יַיִן בְּשַׁבָּת וְיוֹם טוֹב אוֹ בַּחֲתֻנָּה שֶׁל מִצְוָה אוֹ בִּשְׁאָרֵי סְעֻדּוֹת מִצְוָה. וְשׁוֹתֶה בְּמִדָּה וְכַוָּנָתוֹ לַשָּׁמַיִם לִזְכּוֹת לְשִׂמְחַת יִשְׂרָאֵל לִשְׂמחַ בְּהַשֵּׁם יִתְבָּרַךְ אֲשֶׁר בָּחַר בָּנוּ מִכָּל הָעַמִּים וְכוּ'. וְנִתְעוֹרֵר לְשִׂמְחָה עַל יְדֵי זֶה עַד שֶׁנִּמְשָׁךְ הַשִׂמְחָה לְתוֹךְ הָרַגְלִין דְּהַיְנוּ שֶׁמְּרַקֵּד מֵחֲמַת שִׂמְחָה. עַל יְדֵי זֶה מְגָרֵשׁ הַחִיצוֹנִים הַנֶּאֱחָזִין בָּרַגְלִין וּמַמְתִּיק וּמְבַטֵּל כָּל הַדִּינִים וְזוֹכֶה לְקַבֵּל כָּל הַבְּרָכוֹת. וְהַהִתְלַהֲבוּת הַזּאת שֶׁל הָרִקּוּדִין הוּא "אִשֶּׁה רֵיחַ נִיחוֹחַ לַה'". אֲבָל מִי שֶׁמְּרַקֵּד בְּהִתְלַהֲבוּת הַיֵּצֶר הוּא בְּחִינַת "אֵשׁ זָרָה" וְהַיַּיִן שֶׁשָּׁתָה הוּא בְּחִינַת יַיִן הַמְשַׁכֵּר שֶׁמִּשָּׁם אֲחִיזַת הַחִיצוֹנִים חַס וְשָׁלוֹםRead this passage within Part I · Torah 41, in its full context