Earliest and Latest time to light Chanukah Candles: Difference between revisions

From Halachipedia
m (Text replace - "Biur Halacha" to "Beiur Halacha")
m (Text replace - " D(.*)H " to " s.v. ")
Line 3: Line 3:
* The Gemara [[Shabbat]] 21b states one should light from Mishtishka HaChama (lit. from the setting of the sun) until people leave the marketplace. What does the Mishtishka HaChama mean?  
* The Gemara [[Shabbat]] 21b states one should light from Mishtishka HaChama (lit. from the setting of the sun) until people leave the marketplace. What does the Mishtishka HaChama mean?  
* On the basis of some Rishonim the Gra (Beiur HaGra 672:1) writes that one should light at sunset. See Bei’ur Halacha s.v. lo, who adds that perhaps the Rambam holds one should light at sunset. [Seemingly, Bet Yosef who quotes Rambam and then says that the Tur used the word “the end of the sunset” because the beginning of the sunset is still mostly day, holds that the Rambam and Tur don’t argue. However, the Yad Aharon 672 explains the Rambam as holding one should light at sunset. and Mishna Brurah (Beiur Halacha 672:1) also suggests this possibility.] Additionally, The Rama (Darkei Moshe 672:4) quotes the Maharil's practice of lighting right after sunset. The Darkei Moshe also quotes the Sefer Minhagim (of Rabbi Tirna pg 144) who agrees that the gemara means that one should light at [[Shekiyah]], but adds that one doesn't need to be careful about this.  
* On the basis of some Rishonim the Gra (Beiur HaGra 672:1) writes that one should light at sunset. See Bei’ur Halacha s.v. lo, who adds that perhaps the Rambam holds one should light at sunset. [Seemingly, Bet Yosef who quotes Rambam and then says that the Tur used the word “the end of the sunset” because the beginning of the sunset is still mostly day, holds that the Rambam and Tur don’t argue. However, the Yad Aharon 672 explains the Rambam as holding one should light at sunset. and Mishna Brurah (Beiur Halacha 672:1) also suggests this possibility.] Additionally, The Rama (Darkei Moshe 672:4) quotes the Maharil's practice of lighting right after sunset. The Darkei Moshe also quotes the Sefer Minhagim (of Rabbi Tirna pg 144) who agrees that the gemara means that one should light at [[Shekiyah]], but adds that one doesn't need to be careful about this.  
* The Rashba (21b D”H Ha DeAmrinan) seems to understand the term Mishtishka HaChama to mean Shkiyat HaChama. The Ran (on the Rif 9a s.v. Mitzvata) and Meiri (21b s.v. Achar) also imply this understanding. The Beiur HaGra 672:1 understands the Rashba and Ran as discussing the Shekiya Sheniya (the second sunset, a term that will hopefully be clarified later).  
* The Rashba (21b s.v. Ha DeAmrinan) seems to understand the term Mishtishka HaChama to mean Shkiyat HaChama. The Ran (on the Rif 9a s.v. Mitzvata) and Meiri (21b s.v. Achar) also imply this understanding. The Beiur HaGra 672:1 understands the Rashba and Ran as discussing the Shekiya Sheniya (the second sunset, a term that will hopefully be clarified later).  
* However, The Mordechai (Hagahot Mordechai 455) writes that one should light [[Chanukah]] candles at Tzeit HaKochavim, because a candle isn’t noticeable during the day. Similarly, Rabbenu Tam (Sefer HaYashar 221, Tosfot Menachot 20b D”H Nifsal) holds that one should not [[chanuka]] candles until the end of the second [[shekiyah]], which is equivalent to Tzet Hakochavim. The Hagahot Mordechai ([[Shabbat]] 455), Ritva 21b, Sh”t Trumat HaDeshen 102 in name of Mordechai, Sedah LeDerech 4:7(2), and Bach 672:1 based on the Rosh ([[Shabbat]] 2:3) concur with the opinion of Rabbenu Tam. The Tur and S”A 672:1 rule like the Mordechai.  
* However, The Mordechai (Hagahot Mordechai 455) writes that one should light [[Chanukah]] candles at Tzeit HaKochavim, because a candle isn’t noticeable during the day. Similarly, Rabbenu Tam (Sefer HaYashar 221, Tosfot Menachot 20b s.v. Nifsal) holds that one should not [[chanuka]] candles until the end of the second [[shekiyah]], which is equivalent to Tzet Hakochavim. The Hagahot Mordechai ([[Shabbat]] 455), Ritva 21b, Sh”t Trumat HaDeshen 102 in name of Mordechai, Sedah LeDerech 4:7(2), and Bach 672:1 based on the Rosh ([[Shabbat]] 2:3) concur with the opinion of Rabbenu Tam. The Tur and S”A 672:1 rule like the Mordechai.  
* Most achronim hold like S”A to light at Tzet Hakochavim including the Shaarei Knesset HaGedolah 672:1, Magan Avraham 672:1, Eliyah Raba 672:1, Maamer Mordechai 672:1, Chaye Adam 154:18, Derech HaChaim 672:2, Ben Ish Chai Vayeshev 7, Shulchan lechem Hapanim 672, and Kaf Hachaim 672:2.  
* Most achronim hold like S”A to light at Tzet Hakochavim including the Shaarei Knesset HaGedolah 672:1, Magan Avraham 672:1, Eliyah Raba 672:1, Maamer Mordechai 672:1, Chaye Adam 154:18, Derech HaChaim 672:2, Ben Ish Chai Vayeshev 7, Shulchan lechem Hapanim 672, and Kaf Hachaim 672:2.  
* Thus, Yalkut Yosef 672:1 writes that one should light at tzet hachochavim which is 15 minutes after sunset. [The time of 15 minutes is built off the Geonim's opinion that 13.5 minutes after sunset is Tzet Hakochavim unlike the tzet hachochavim of Rabbenu Tam, which is 72 minutes after sunset because [[Chanukah]] is only derabanan and one can rely on the Minhag Eretz Yisrael for derabanan mitzvoth (Sh”t Yabia Omer 2:21). Additionally, by not lighting until the Tzet Hakochavim of Rabbenu Tam will lead one to light after the latest time for which one doesn’t fulfill the mitzvah according to many poskim (Sefer [[Chanukah]] of Rav Kanievsky pg 13 note 8).] [http://www.halachayomit.co.il/EnglishDefault.asp?HalachaID=1695 Halacha yomit] writes that the time is extrapolated to each place based on 13.5 minutes Sha'ot Zmaniot.  
* Thus, Yalkut Yosef 672:1 writes that one should light at tzet hachochavim which is 15 minutes after sunset. [The time of 15 minutes is built off the Geonim's opinion that 13.5 minutes after sunset is Tzet Hakochavim unlike the tzet hachochavim of Rabbenu Tam, which is 72 minutes after sunset because [[Chanukah]] is only derabanan and one can rely on the Minhag Eretz Yisrael for derabanan mitzvoth (Sh”t Yabia Omer 2:21). Additionally, by not lighting until the Tzet Hakochavim of Rabbenu Tam will lead one to light after the latest time for which one doesn’t fulfill the mitzvah according to many poskim (Sefer [[Chanukah]] of Rav Kanievsky pg 13 note 8).] [http://www.halachayomit.co.il/EnglishDefault.asp?HalachaID=1695 Halacha yomit] writes that the time is extrapolated to each place based on 13.5 minutes Sha'ot Zmaniot.  
Line 15: Line 15:
== Latest Time to Light==
== Latest Time to Light==
# One shouldn’t delay lighting the [[Chanukah]] candles at the ideal time (see above), but if one didn't light until after the time that people left the marketplace, one should nonetheless light. However, while some say that one may only recite the bracha if some of the household members are awake, others hold that it’s proper to wake up some of the family, but if one can’t, he should still light with a bracha. <ref>  
# One shouldn’t delay lighting the [[Chanukah]] candles at the ideal time (see above), but if one didn't light until after the time that people left the marketplace, one should nonetheless light. However, while some say that one may only recite the bracha if some of the household members are awake, others hold that it’s proper to wake up some of the family, but if one can’t, he should still light with a bracha. <ref>  
* The Gemara [[Shabbat]] 21b has two explanations of the Briatta's language of ‘Tichleh Regel Min HaShuk’ (once people leave the market). The first explanation is ‘if one didn’t light, one can still light’ and the other explanation is that one must put in enough oil to last until the time people leave the market. The Rambam ([[Chanukah]] 4:5) rules that one who didn’t light at the beginning of the night, one can still light until ‘Tichleh Regel’. The Bach 672 explains that the Rambam understood that the two answers of the gemara are complementary and so he rules based on the first answer that one may only light until the time people leave the market. Magid Mishna, Bahag ([[Chanukah]] pg 25d), Sh”t HaGoanim Sharei Teshuva 233, Riaz, Rid, Shiltei Giborim, Smak 280, Mordechai ([[Shabbat]] 2:265), Ran, Sefer HaTrumah 228, Rosh ([[Shabbat]] 2:3), Tur 672, Pri Chadash, Maamer Mordechai  672:4, Sh”t Sadeh Aretz O”C 35 D”H VaAni, hold like the Rambam that after ‘Tichle Regel there’s no mitzvah to light. Therefore, Meiri, Ritva, and Orchot Chaim ([[Chanukah]] 15) say to light after then without a bracha.  
* The Gemara [[Shabbat]] 21b has two explanations of the Briatta's language of ‘Tichleh Regel Min HaShuk’ (once people leave the market). The first explanation is ‘if one didn’t light, one can still light’ and the other explanation is that one must put in enough oil to last until the time people leave the market. The Rambam ([[Chanukah]] 4:5) rules that one who didn’t light at the beginning of the night, one can still light until ‘Tichleh Regel’. The Bach 672 explains that the Rambam understood that the two answers of the gemara are complementary and so he rules based on the first answer that one may only light until the time people leave the market. Magid Mishna, Bahag ([[Chanukah]] pg 25d), Sh”t HaGoanim Sharei Teshuva 233, Riaz, Rid, Shiltei Giborim, Smak 280, Mordechai ([[Shabbat]] 2:265), Ran, Sefer HaTrumah 228, Rosh ([[Shabbat]] 2:3), Tur 672, Pri Chadash, Maamer Mordechai  672:4, Sh”t Sadeh Aretz O”C 35 s.v. VaAni, hold like the Rambam that after ‘Tichle Regel there’s no mitzvah to light. Therefore, Meiri, Ritva, and Orchot Chaim ([[Chanukah]] 15) say to light after then without a bracha.  
* However, Tosfot ([[Shabbat]] 21b D”H Deiy Lo Adlik) writes that according to the second answer of the gemara one may light all night. However, in deference to the first answer if people have already left the market one should only light without a bracha. However, the Ri (Tosfot ibid.) raises the point that since nowadays we light indoors and there is pirsumei nisa for the family members, one may light even after the time that people have left the marketplace.
* However, Tosfot ([[Shabbat]] 21b s.v. Deiy Lo Adlik) writes that according to the second answer of the gemara one may light all night. However, in deference to the first answer if people have already left the market one should only light without a bracha. However, the Ri (Tosfot ibid.) raises the point that since nowadays we light indoors and there is pirsumei nisa for the family members, one may light even after the time that people have left the marketplace.
* Additionally, the Rashba ([[Shabbat]] 21b) understands that if one didn’t light by ‘Tichleh Regel’ can still light all night and the Briatta is only telling us what is preferable. The Rashba bases his idea on the Mishna [[Megillah]] (20b) that states any nighttime mitzvah may be performed anytime during the night. The Ravyah 3:843, Hagahot Maimon ([[Chanukah]] 4:2), Machsor Vitri (236 pg 199), Rabbenu Yerucham 9:1, Siddur Rashi 316 pg 151, Teshuvat Rashi 52, Pardes HaGadol 199, Sh”t Maseh HaGoanim 52 pg 43, Tosfot ([[Shabbat]] 21b D”H Deiy Lo Adlik) in name of the Ri, Sefer Trumah 228 in name of Ri, Shibolei HaLeket 185 in name of Sefer Hatrumah, Ohel Moed ([[Chanukah]] 4), Teshuvat Ravyah 972, Rosh 2:3, Smak, Rabbene Yerucham 9:1, Meiri, Smag, Orchot Chaim in name of some Geonim and Sefer Hatrumah, and Ran hold that one may light later in the night based on the opinion of the Ri and Rashba. Rabben Peretz (on Smak 280) says to light while household members are awake. Ritva says nowadays when we light inside we can light after ‘Tichle Regel’ against the Tur who says this time applies even nowadays. [Darkei Moshe and Bach write that the Tur also agrees to the Tosfot but just was writing according to the Minhag of his place.]  
* Additionally, the Rashba ([[Shabbat]] 21b) understands that if one didn’t light by ‘Tichleh Regel’ can still light all night and the Briatta is only telling us what is preferable. The Rashba bases his idea on the Mishna [[Megillah]] (20b) that states any nighttime mitzvah may be performed anytime during the night. The Ravyah 3:843, Hagahot Maimon ([[Chanukah]] 4:2), Machsor Vitri (236 pg 199), Rabbenu Yerucham 9:1, Siddur Rashi 316 pg 151, Teshuvat Rashi 52, Pardes HaGadol 199, Sh”t Maseh HaGoanim 52 pg 43, Tosfot ([[Shabbat]] 21b s.v. Deiy Lo Adlik) in name of the Ri, Sefer Trumah 228 in name of Ri, Shibolei HaLeket 185 in name of Sefer Hatrumah, Ohel Moed ([[Chanukah]] 4), Teshuvat Ravyah 972, Rosh 2:3, Smak, Rabbene Yerucham 9:1, Meiri, Smag, Orchot Chaim in name of some Geonim and Sefer Hatrumah, and Ran hold that one may light later in the night based on the opinion of the Ri and Rashba. Rabben Peretz (on Smak 280) says to light while household members are awake. Ritva says nowadays when we light inside we can light after ‘Tichle Regel’ against the Tur who says this time applies even nowadays. [Darkei Moshe and Bach write that the Tur also agrees to the Tosfot but just was writing according to the Minhag of his place.]  
* Based on the opinion of the Ri, the Rama 672:2 rules nowadays one doesn’t need light by Tichleh Regel but one should be careful to light by then. Similarly,  S”A 672:2 rules that if one did not light before people left the marketplace, he nevertheless should do so later on until [[Olot HaShachar]]. The Magen Avraham 672:6 explains that one is allowed to light after people left the marketplace with a bracha only as long as the family members are awake. Eliyah Raba, 672:3, Chaye Adam 154:19, Derech Hachaim 672:2, Ben Ish Chai Vayeshev 7, Aruch HaShulchan 672:7, and Kaf Hachaim 672:26 agree with the Magen Avraham. Thus, Mishna Brurah 672:11 says that if one is lighting after the time that people have left the marketplace, it is proper to awaken family members so that one may light with a bracha. Similarly, Rav Dovid Yosef (Torat HaMoadim 4:4) rules that one shouldn’t make a bracha but shouldn’t stop someone who wants to make the bracha as he has what to rely on.  
* Based on the opinion of the Ri, the Rama 672:2 rules nowadays one doesn’t need light by Tichleh Regel but one should be careful to light by then. Similarly,  S”A 672:2 rules that if one did not light before people left the marketplace, he nevertheless should do so later on until [[Olot HaShachar]]. The Magen Avraham 672:6 explains that one is allowed to light after people left the marketplace with a bracha only as long as the family members are awake. Eliyah Raba, 672:3, Chaye Adam 154:19, Derech Hachaim 672:2, Ben Ish Chai Vayeshev 7, Aruch HaShulchan 672:7, and Kaf Hachaim 672:26 agree with the Magen Avraham. Thus, Mishna Brurah 672:11 says that if one is lighting after the time that people have left the marketplace, it is proper to awaken family members so that one may light with a bracha. Similarly, Rav Dovid Yosef (Torat HaMoadim 4:4) rules that one shouldn’t make a bracha but shouldn’t stop someone who wants to make the bracha as he has what to rely on.  
* However, Igrot Moshe 4:105:7 argues that even if all family members are sleeping, one may recite the bracha, because pirsumei nisa isn’t an absolutely essential part of the mitzvah. The Chemed Moshe (quoted by Shaat Tziyun 672:17), Erech Hashulchan 672:4, and Moed Kol Chai 27:27 agree. One of the proofs of the Chemed Moshe is the Riaz (quoted by S"A 677:3) who says that if a person is alone in a town that is completely filled with non-Jews one should light there with a bracha, even if there is someone lighting for him at home. The Igrot Moshe writes that the same would be true even if a person is all alone and there aren't even non-Jews around, one should light there with a bracha.
* However, Igrot Moshe 4:105:7 argues that even if all family members are sleeping, one may recite the bracha, because pirsumei nisa isn’t an absolutely essential part of the mitzvah. The Chemed Moshe (quoted by Shaat Tziyun 672:17), Erech Hashulchan 672:4, and Moed Kol Chai 27:27 agree. One of the proofs of the Chemed Moshe is the Riaz (quoted by S"A 677:3) who says that if a person is alone in a town that is completely filled with non-Jews one should light there with a bracha, even if there is someone lighting for him at home. The Igrot Moshe writes that the same would be true even if a person is all alone and there aren't even non-Jews around, one should light there with a bracha.
Line 28: Line 28:
# Soldiers in the army who can’t light at night for security reasons and want to light while it’s still day and extinguish it before it gets dark can light without a bracha. <ref> Yalkut Yosef (Moadim pg 210) </ref>
# Soldiers in the army who can’t light at night for security reasons and want to light while it’s still day and extinguish it before it gets dark can light without a bracha. <ref> Yalkut Yosef (Moadim pg 210) </ref>
== Lighting before or after Mariv==
== Lighting before or after Mariv==
# One who came home late and has to pray [[Mariv]] and light candles should pray first. <ref> Chazon Ovadyah ([[Chanukah]] pg 71) and Mishna Brurah (explained in Beiur Halacha) 672:1 brings two proofs :1)Tosfot ([[Shabbat]] 23b D”H Hadar) says Tadir VeShEno Tadir, Tadir Kodem (the more common mitzvah comes first) overrides the mitzvah of Pirsume Nisa (publicizing the miracle. So holds Meiri ([[Shabbat]] 23b) in name of Gedolei Dorot, Ran ([[Shabbat]] 23b), Ramban ([[Shabbat]] 22b), Rosh ([[Shabbat]] 2:13), Rashba ([[Shabbat]] 22b), Teshuvat Rashba 1:1070, Rabbenu Yerucham (p. 61d 2). Also, [[Kriyat Shema]] is Deoritta and lighting candles is Derabanan and Peni Yehoshua [[Brachot]] 51b, Nodeh BeYehuda Kama O”C 39,41e, and Sh”t Rama MePano 14 hold Deorittas precede a Derabanan. Even though the Shagat Aryeh argues that Deorittas don’t have any precedence over Derabanan’s, most of the achronim agree with the Peni Yehoshua including: Sh”t Imrei Esh O”C 53, Mispeh Eitan ([[Brachot]] 51b), Chatom Sofer (Pesachim 102b), and Sh”t Shev Yacov O”C 22. However Magan Avraham 672:5 rules one should light before praying [[Mariv]]. Because of Tadir and [[Shema]] is Deoritta, Sh”t Shevut Yacov 2:40, Sh”t Shev Yacov 22 quoted by Sh”t Orach LeChaim O”C 1, implied from Sh”t Lechem Seirim 21, Shoel UMeishiv (Riviah 2:219) and Chaim VeChesed Mosefia pg 90d:11 in name of Mahari MeTaril disagree with the Magan Avraham. Chidushei Maharsa 8b says that everyone agrees that if it’s close to [[Chatzot]] one should pray before lighting because preferably one should pray before [[Chatzot]]. [Bear Hetev 672:2 quotes Magan Avraham and then says so holds Knesset Hagedolah. However Shaarei Teshuva 672:1 says that the Bear Hetev made a mistake about the Knesset Hagedolah as appears from Sh”t Shevut Yacov. Sh”t Shevut Yacov quotes the Shaarei Knesset Hagedolah (Hagahot Hatur 672:1) who writes that he retracted from his opinion that one should light before praying. ]  </ref>
# One who came home late and has to pray [[Mariv]] and light candles should pray first. <ref> Chazon Ovadyah ([[Chanukah]] pg 71) and Mishna Brurah (explained in Beiur Halacha) 672:1 brings two proofs :1)Tosfot ([[Shabbat]] 23b s.v. Hadar) says Tadir VeShEno Tadir, Tadir Kodem (the more common mitzvah comes first) overrides the mitzvah of Pirsume Nisa (publicizing the miracle. So holds Meiri ([[Shabbat]] 23b) in name of Gedolei Dorot, Ran ([[Shabbat]] 23b), Ramban ([[Shabbat]] 22b), Rosh ([[Shabbat]] 2:13), Rashba ([[Shabbat]] 22b), Teshuvat Rashba 1:1070, Rabbenu Yerucham (p. 61d 2). Also, [[Kriyat Shema]] is Deoritta and lighting candles is Derabanan and Peni Yehoshua [[Brachot]] 51b, Nodeh BeYehuda Kama O”C 39,41e, and Sh”t Rama MePano 14 hold Deorittas precede a Derabanan. Even though the Shagat Aryeh argues that Deorittas don’t have any precedence over Derabanan’s, most of the achronim agree with the Peni Yehoshua including: Sh”t Imrei Esh O”C 53, Mispeh Eitan ([[Brachot]] 51b), Chatom Sofer (Pesachim 102b), and Sh”t Shev Yacov O”C 22. However Magan Avraham 672:5 rules one should light before praying [[Mariv]]. Because of Tadir and [[Shema]] is Deoritta, Sh”t Shevut Yacov 2:40, Sh”t Shev Yacov 22 quoted by Sh”t Orach LeChaim O”C 1, implied from Sh”t Lechem Seirim 21, Shoel UMeishiv (Riviah 2:219) and Chaim VeChesed Mosefia pg 90d:11 in name of Mahari MeTaril disagree with the Magan Avraham. Chidushei Maharsa 8b says that everyone agrees that if it’s close to [[Chatzot]] one should pray before lighting because preferably one should pray before [[Chatzot]]. [Bear Hetev 672:2 quotes Magan Avraham and then says so holds Knesset Hagedolah. However Shaarei Teshuva 672:1 says that the Bear Hetev made a mistake about the Knesset Hagedolah as appears from Sh”t Shevut Yacov. Sh”t Shevut Yacov quotes the Shaarei Knesset Hagedolah (Hagahot Hatur 672:1) who writes that he retracted from his opinion that one should light before praying. ]  </ref>
# Sephardim have the Minhag to pray [[Mariv]] at Shkiah and to light individually at Tzet. So too, if the [[minyan]] prays at Tzet they should pray and then light individually unless there’s a concern that they won’t be able to light before ‘Tichle Regel’, in which case each individual should light before praying. One should set up the chanukia and candles before Tzet so that after [[Mariv]] one can light right away.  <ref> Torat HaMoadim 4:8 and Kaf Hachaim 672:5 say that because of Tadir we pray and then light. Chida in Machzik Bracha 672:3, Sh”t Mahari Halevi 1:182, says if there’s a concern of missing ‘Tichle Regel’ one could light first. One should set it up beforehand as per Mishna Brurah 672:1 and Kaf Hachaim 672:6. </ref>
# Sephardim have the Minhag to pray [[Mariv]] at Shkiah and to light individually at Tzet. So too, if the [[minyan]] prays at Tzet they should pray and then light individually unless there’s a concern that they won’t be able to light before ‘Tichle Regel’, in which case each individual should light before praying. One should set up the chanukia and candles before Tzet so that after [[Mariv]] one can light right away.  <ref> Torat HaMoadim 4:8 and Kaf Hachaim 672:5 say that because of Tadir we pray and then light. Chida in Machzik Bracha 672:3, Sh”t Mahari Halevi 1:182, says if there’s a concern of missing ‘Tichle Regel’ one could light first. One should set it up beforehand as per Mishna Brurah 672:1 and Kaf Hachaim 672:6. </ref>
# Ashkenzim who have the Minhag to pray at Tzet, should light at Shkiah before praying [[Mariv]] at Tzet. If Tzet came and one didn’t light he should first pray and then light. However some have the Minhag to always light after praying [[Mariv]]. One should set up the chanukia and candles before Tzet so that after [[Mariv]] one can light right away. <ref> Mishna Brurah 672:1 in name of Mor Ukesiah and the Minhag of the Gra to light before they prayed at Tzet, if one didn’t light until Tzet one prays first because of Tadir and that [[Shema]] is Deoritta. He also records the practice of some who would always light after [[Mariv]]. Torat HaMoadim 4:8 agrees. One should set it up beforehand as per Mishna Brurah 672:1 and Kaf Hachaim 672:6. </ref>
# Ashkenzim who have the Minhag to pray at Tzet, should light at Shkiah before praying [[Mariv]] at Tzet. If Tzet came and one didn’t light he should first pray and then light. However some have the Minhag to always light after praying [[Mariv]]. One should set up the chanukia and candles before Tzet so that after [[Mariv]] one can light right away. <ref> Mishna Brurah 672:1 in name of Mor Ukesiah and the Minhag of the Gra to light before they prayed at Tzet, if one didn’t light until Tzet one prays first because of Tadir and that [[Shema]] is Deoritta. He also records the practice of some who would always light after [[Mariv]]. Torat HaMoadim 4:8 agrees. One should set it up beforehand as per Mishna Brurah 672:1 and Kaf Hachaim 672:6. </ref>