From Sahih Bukhari (Hadith 6294):
Narrated Abu Musa:One night a house in Medina was burnt with its occupants. The Prophet (ﷺ) spoke about them, saying, "This fire is indeed your enemy, so whenever you go to bed, put it out to protect yourselves
Reference: Bukhari 6294