Al-Ilmam bi-Ahadith al-Ahkam 17
وَعَن جَابر بن عبد الله رَضِيَ اللَّهُ عَنْهما قَالَ، قَالَ: رَسُول الله ﷺ : " إِذا كَانَ جُنح اللَّيْل إِذا أمسيتم فكفُّوا صِبْيَانكُمْ فَإِن الشَّيَاطِين تَنْتَشِر حِينَئِذٍ، فَإِذا ذهب سَاعَة من اللَّيْل فخلّوهم، وَأَغْلقُوا الْأَبْوَاب، واذْكُرُوا اسْم الله فَإِن الشَّيَاطِين لَا تفتح بَابا مغلقاً، وأوكوا قربكم واذْكُرُوا اسْم الله، وخمِّروا آنيتكم واذْكُرُوا اسْم الله، وَلَو أَن تَعْرِضُوا عَلَيْهَا شَيْئا، وأطفئوا مصابيحكم ". رَوَاهُ البُخَارِيّ.
From Jabir ibn ʿAbdullah, may Allah be pleased with them both, who said: The Messenger of Allah ﷺ said: "When the darkness of night falls, when you reach evening, keep your children in, for the devils spread out at that time. When an hour of the night has passed, let them go. Close the doors and mention the name of Allah, for the devils do not open a closed door. Tie up your water-skins and mention the name of Allah. Cover your vessels and mention the name of Allah, even if you only lay something across them. And put out your lamps." Al-Bukhari narrated it.