Shulchan Aruch, Orach Chayim Siman 278

Siman 278

Presented here for study, not as a practical ruling. The Shulchan Aruch rules by Sephardi custom, the Rema's glosses by Ashkenazi custom, and the Kitzur follows Ashkenazi custom. For a practical question, ask your rabbi.

א מֻתָּר לְכַבּוֹת הַנֵּר בִּשְׁבִיל שֶׁיִּשַׁן הַחוֹלֶה שֶׁיֵּשׁ בּוֹ סַכָּנָה.
1 It is permitted to extinguish a candle to enable a sick person at risk to fall asleep.