كتاب الأشربة
36  
The Book of Drinks
(12)
Chapter: 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
(12)
باب الأَمْرِ بِتَغْطِيَةِ الإِنَاءِ وَإِيكَاءِ السِّقَاءِ وَإِغْلاَقِ الأَبْوَابِ وَذِكْرِ اسْمِ اللَّهِ عَلَيْهَا وَإِطْفَاءِ السِّرَاجِ وَالنَّارِ عِنْدَ النَّوْمِ وَكَفِّ الصِّبْيَانِ وَالْمَوَاشِي بَعْدَ الْمَغْرِبِ
Sahih Muslim 2015

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.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَعَمْرٌو النَّاقِدُ، وَزُهَيْرُ بْنُ حَرْبٍ، قَالُوا حَدَّثَنَا سُفْيَانُ، بْنُ عُيَيْنَةَ عَنِ الزُّهْرِيِّ، عَنْ سَالِمٍ، عَنْ أَبِيهِ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ لاَ تَتْرُكُوا النَّارَ فِي بُيُوتِكُمْ حِينَ تَنَامُونَ ‏"‏ ‏.‏
Reference : Sahih Muslim 2015
In-book reference : Book 36, Hadith 131
USC-MSA web (English) reference : Book 23, Hadith 5002
  (deprecated numbering scheme)