The Messenger of Allah ﷺ said, "When night falls, or when evening comes, keep your children indoors, for the devils spread out at that time. Once an hour 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."He said, Amr bin Dinar also informed me that he heard Jabir bin Abdullah report something similar to what Ata informed me, but he did not mention, "and mention the name of Allah."
حدثنا إسحاق أخبرنا روح أخبرنا ابن جريج قال أخبرني عطاء سمع
رسول الله ﷺ إذا كان جنح الليل أو أمسيتم فكفوا صبيانكم فإن الشياطين تنتشر حينئذ فإذا ذهبت ساعة من الليل فخلوهم وأغلقوا الأبواب واذكروا اسم الله فإن الشيطان لا يفتح بابا مغلقا قال وأخبرني عمرو بن دينار سمع جابر بن عبد الله نحو ما أخبرني عطاء ولم يذكر واذكروا اسم الله