Chapter: It is recommended to cover vessels, tie up waterskins, close doors and mention the name of Allah over them, extinguish lamps and fires when going to sleep, and keep children and animals in after maghrib
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.
Authentic