Sahih Muslim Book 23, Hadith Number 5003.

Chapter : Command pertaining to the covering of vessels, and tightening (the mouths) of waterskins, etc.

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 (may peace be upon him), he said; This fire is an enemy of yours. So when you go to sleep, extinguish it.