Al-Adab Al-Mufrad, Book 51, Hadith 1234 (In-Book) ⓘ
Jabir ibn 'Abdullah reported that the Messenger of Allah, may Allah bless him and grant him peace, said, "When you hear a dog barking or a donkey braying in the night, seek refuge with Allah. They see what you do not see. Shut the doors and mention the Name of Allah over them. Shaytan will not open a door which has been shut and had the name of Allah mentioned over it. Then cover the pots, tie the water-skins and cover the vessels."
حَدَّثَنَا أَحْمَدُ بْنُ خَالِدٍ، قَالَ: حَدَّثَنَا مُحَمَّدُ بْنُ إِسْحَاقَ، عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ جَابِرِ بْنِ عَبْدِ اللهِ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ: إِذَا سَمِعْتُمْ نُبَاحَ الْكِلاَبِ أَوْ نُهَاقَ الْحَمِيرِ مِنَ اللَّيْلِ، فَتَعَوَّذُوا بِاللَّهِ، فَإِنَّهُمْ يَرَوْنَ مَالاَ تَرَوْنَ، وَأَجِيفُوا الأَبْوَابَ، وَاذْكُرُوا اسْمَ اللهِ عَلَيْهَا، فَإِنَّ الشَّيْطَانَ لاَ يَفْتَحُ بَابًا أُجِيفَ وَذُكِرَ اسْمُ اللهِ عَلَيْهِ، وَغَطُّوا الْجِرَارَ، وَأَوْكِئُوا الْقِرَبَ وَأَكْفِئُوا الآنِيَةَ.
also referenced under: Hadith 1234 (Reference) & Book 51, Hadith 1234 (English)