كتاب الأشربة
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 g

This hadith has been transmitted on the authority of Ibn Juraij.

وَحَدَّثَنَا أَحْمَدُ بْنُ عُثْمَانَ النَّوْفَلِيُّ، حَدَّثَنَا أَبُو عَاصِمٍ، أَخْبَرَنَا ابْنُ جُرَيْجٍ، بِهَذَا الْحَدِيثِ عَنْ عَطَاءٍ، وَعَمْرِو بْنِ دِينَارٍ، كَرِوَايَةِ رَوْحٍ ‏.‏
Reference : Sahih Muslim 2012g
In-book reference : Book 36, Hadith 126
USC-MSA web (English) reference : Book 23, Hadith 4997
  (deprecated numbering scheme)