Sunan Ibn Majah, Volume 5, Book 33, Hadith 3770 (DarusSalam) ⓘ
It was narrated that Abu Musa said: "A house burned down in Al-Madinah, with its occupants inside. The Prophet was told of what had happened, and he said: 'This fire is an enemy to you. When you go to sleep, extinguish it.'"
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ بُرَيْدِ بْنِ عَبْدِ اللَّهِ، عَنْ أَبِي بُرْدَةَ، عَنْ أَبِي مُوسَى، قَالَ احْتَرَقَ بَيْتٌ بِالْمَدِينَةِ عَلَى أَهْلِهِ فَحُدِّثَ النَّبِيُّ ـ صلى الله عليه وسلم ـ بِشَأْنِهِمْ فَقَالَ " إِنَّمَا هَذِهِ النَّارُ عَدُوٌّ لَكُمْ فَإِذَا نِمْتُمْ فَأَطْفِئُوهَا عَنْكُمْ " .
also referenced under: Hadith 3770 (Reference) & Book 33, Hadith 115 (In-Book)