The Shulchan Aruch · Orach Chayim
אורח חיים תרפ״אOrach Chayim 681
Siman 681 of 697 in Orach Chayim — 2 se'ifim
הלכות חנוכהLaws of Chanukah· siman 681
Se’if 1א׳
בְּמוֹצָאֵי שַׁבָּת אֵין מַבְדִּילִין בְּנֵר חֲנֻכָּה, שֶׁאֵין נֶהֱנִים לְאוֹרוֹ וְאֵין מְבָרְכִין עַל הַנֵּר עַד שֶׁיֵּאוֹתוּ לְאוֹרוֹ.
We Do Not Perform the Havdalah With the Hanukkah Light After the Sabbath, 2 Seifim: After the Sabbath we do not perform the havdalah with the Hanukkah light, for we may not derive pleasure from its illumination, and we do not recite the benediction over the [havdalah] light until we bask in its illumination.
Se’if 2ב׳
מַדְלִיקִין נֵר חֲנֻכָּה בְּבֵית הַכְּנֶסֶת קֹדֶם הַהַבְדָּלָה. הַגָּה: וְכָל שֶׁכֵּן בְּבֵיתוֹ שֶׁמַּדְלִיק וְאַחַר כָּךְ מַבְדִּיל, שֶׁהֲרֵי כְּבָר הִבְדִּיל בְּבֵית הַכְּנֶסֶת.
We kindle the Hanukkah light in the synagogue before the havdalah. Rema: And all the more so at home where one kindles and afterward performs the havdalah, for havdalah has already been performed in the synagogue.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0