Hadith 19571

وَقَالَ : احْتَرَقَ بَيْتٌ بِالْمَدِينَةِ عَلَى أَهْلِهِ ، فَحُدِّثَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِشَأْنِهِمْ ، فَقَالَ : " إِنَّمَا هَذِهِ النَّارُ عَدُوٌّ لَكُمْ ، فَإِذَا نِمْتُمْ ، فَأَطْفِئُوهَا عَنْكُمْ " .
And it is said that once a house in Madinah Munawwarah caught fire and all the members of the household were burned. When this was reported to the Noble Prophet (peace and blessings be upon him), the Noble Prophet (peace and blessings be upon him) said: This fire is your enemy; when you go to sleep, extinguish it.
Hadith Reference مسند احمد / تتمہ مُسْنَدِ الْكُوفِيِّينَ / 19571
Hadith Grading حکم دارالسلام: إسناده صحيح، خ: 6294، م: 2016