Sahih Muslim 2015
Sahih Muslim · Book 36: The Book of Drinks · It is recommended to cover vessels, tie up waterskins, close doors and mention the name of Allah over them, extinguish lamps and fires when going to sleep, and keep children and animals in after maghrib
Salim, on the authority of his father, reported Allah's Messenger (ﷺ) having said:
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ، وَعَمْرٌو النَّاقِدُ ، وَزُهَيْرُ بْنُ حَرْبٍ ، قَالُوا حَدَّثَنَا سُفْيَانُ، بْنُ عُيَيْنَةَ عَنِ الزُّهْرِيِّ ، عَنْ سَالِمٍ ، عَنْ أَبِيهِ ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " لاَ تَتْرُكُوا النَّارَ فِي بُيُوتِكُمْ حِينَ تَنَامُونَ " .
Do not leave the fire burning in your houses when you go to sleep.