(12) باب الأَمْرِ بِتَغْطِيَةِ الإِنَاءِ وَإِيكَاءِ السِّقَاءِ وَإِغْلاَقِ الأَبْوَابِ وَذِكْرِ اسْمِ اللَّهِ عَلَيْهَا وَإِطْفَاءِ السِّرَاجِ وَالنَّارِ عِنْدَ النَّوْمِ وَكَفِّ الصِّبْيَانِ وَالْمَوَاشِي بَعْدَ الْمَغْرِبِ
Abu Musa reported that a house was burnt down in Medina during the night over its inhabitants. When their matter was reported to Allah's Messenger (ﷺ), he said; This fire is an enemy of yours. So when you go to sleep, extinguish it.
Reference: Sahih Muslim 2016
In-book reference: Book 36, Hadith 132
USC-MSA web (English) reference(deprecated numbering scheme): Book 23, Hadith 5003
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.