كتاب الأشربة
36  
The Book of Drinks
(12)
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
(12)
باب الأَمْرِ بِتَغْطِيَةِ الإِنَاءِ وَإِيكَاءِ السِّقَاءِ وَإِغْلاَقِ الأَبْوَابِ وَذِكْرِ اسْمِ اللَّهِ عَلَيْهَا وَإِطْفَاءِ السِّرَاجِ وَالنَّارِ عِنْدَ النَّوْمِ وَكَفِّ الصِّبْيَانِ وَالْمَوَاشِي بَعْدَ الْمَغْرِبِ
Sahih Muslim 2012 e

Jabir b. 'Abdullah reported Allah's Messenger (ﷺ) having said:

When the wings of the night (spread) or it is night, restrain your children (from going out), for the Satan is abroad at that time, and when a part of the night is passed, free them and shut the doors. making mention of God's name, for the Satan does not open a closed door; and tighten the (mouths of waterskins and mention the name of Allah, cover your utensils and mention the name of Allah even though you should just put something on them, and extinguish your lamps.
وَحَدَّثَنِي إِسْحَاقُ بْنُ مَنْصُورٍ، أَخْبَرَنَا رَوْحُ بْنُ عُبَادَةَ، حَدَّثَنَا ابْنُ جُرَيْجٍ، أَخْبَرَنَا عَطَاءٌ، أَنَّهُ سَمِعَ جَابِرَ بْنَ عَبْدِ اللَّهِ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِذَا كَانَ جُنْحُ اللَّيْلِ - أَوْ أَمْسَيْتُمْ - فَكُفُّوا صِبْيَانَكُمْ فَإِنَّ الشَّيْطَانَ يَنْتَشِرُ حِينَئِذٍ فَإِذَا ذَهَبَ سَاعَةٌ مِنَ اللَّيْلِ فَخَلُّوهُمْ وَأَغْلِقُوا الأَبْوَابَ وَاذْكُرُوا اسْمَ اللَّهِ فَإِنَّ الشَّيْطَانَ لاَ يَفْتَحُ بَابًا مُغْلَقًا وَأَوْكُوا قِرَبَكُمْ وَاذْكُرُوا اسْمَ اللَّهِ وَخَمِّرُوا آنِيَتَكُمْ وَاذْكُرُوا اسْمَ اللَّهِ وَلَوْ أَنْ تَعْرُضُوا عَلَيْهَا شَيْئًا وَأَطْفِئُوا مَصَابِيحَكُمْ ‏"‏ ‏.‏
Reference : Sahih Muslim 2012e
In-book reference : Book 36, Hadith 124
USC-MSA web (English) reference : Book 23, Hadith 4995
  (deprecated numbering scheme)