Jabir bin Abdullah reported,

The Messenger of Allah ﷺ said, "When night falls, or when evening comes, hold back your children, for the devils spread out at that time. When an hour of the night has passed, you may release them. Shut your doors and mention the name of Allah, for the devil 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 you only place something across them. And put out your lamps."

Azami 8246

Sahih

عن جابر بن عبد الله يقول

قال رسول الله ﷺ: إذا كان جنح الليل أو أمسيتم فكفوا صبيانكم، فإن الشياطين تنتشر حينئذ، فإذا ذهب ساعة من الليل، فحلوهم، فأغلقوا الأبواب، واذكروا اسم الله؛ فإن الشيطان لا يفتح بابا مغلقا، وأوكوا قربكم، واذكروا اسم الله وخمروا آنيتكم، واذكروا اسم الله ولو أن تعرضوا عليها شيئا، وأطفئوا مصابيحكم.

الأعظمي 8246صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Beginning of creation
Section
Satan cannot open a door that was closed with the mention of the name of Allah
Numbering
Jami al-Kamil 8246 (2nd edition)
Azami 8246