The Messenger of Allah ﷺ said, "When night falls, or when evening comes, hold back your children, for the devils spread out at that time. Once a portion of the night has passed, you may let them go. Shut your doors and mention the name of Allah, for Satan does not open a closed door. Tie up your waterskins and mention the name of Allah. Cover your vessels and mention the name of Allah, even if only by placing something across them. And put out your lamps."
قال رسول الله ﷺ: إذا كان جنح الليل- أو أمسيتم- فكفوا صبيانكم، فإن الشياطين تنتشر حينئذ، فإذا ذهب ساعة من الليل فخلوهم، فأغلقوا الأبواب، واذكروا اسم الله، فإن الشيطان لا يفتح بابا مغلقا، وأوكوا قربكم، واذكروا اسم الله، وخمروا آنيتكم واذكروا اسم الله، ولو أن تعرضوا عليها شيئا، وأطفئوا مصابيحكم.
Bukhari narrated it in the Book of Drinks (5623), and Muslim in the Book of Drinks (2012:97), both through Rawh bin Ubada, who said, Ibn Jurayj narrated to us, Ata informed me that he heard Jabir bin Abdullah say what he mentioned.