عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ يَزِيدُ فِي حَدِيثِهِ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يَقُولُ إِذَا سَمِعْتُمْ نُبَاحَ الْكِلَابِ وَنُهَاقَ الْحَمِيرِ مِنَ اللَّيْلِ فَتَعَوَّذُوا بِاللَّهِ فَإِنَّهَا تَرَى مَا لَا تَرَوْنَ وَأَقِلُّوا الْخُرُوجَ إِذَا هَدَأَتِ الرِّجْلُ فَإِنَّ اللَّهَ عَزَّ وَجَلَّ يَبُثُّ فِي لَيْلِهِ مِنْ خَلْقِهِ مَا شَاءَ وَأَجِيفُوا الْأَبْوَابَ وَاذْكُرُوا اسْمَ اللَّهِ عَلَيْهَا فَإِنَّ الشَّيْطَانَ لَا يَفْتَحُ بَابًا أُجِيفَ وَذُكِرَ اسْمُ اللَّهِ عَلَيْهِ وَأَوْكِئُوا الْأَسْقِيَةَ وَفِي رِوَايَةٍ الْقِرَبَ وَغَطُّوا الْجِرَارَ وَأَكْفِئُوا الْآنِيَةَ قَالَ يَزِيدُ وَأَوْكِئُوا الْقِرَبَ
It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: When you hear the barking of dogs or the braying of donkeys at night, seek refuge with Allah, for they see things which you do not see. When people have gone to sleep, do not go outside, for Allah the Exalted spreads various creatures during the night. And close the doors by mentioning the name of Allah, for Satan does not open a door that has been closed with the name of Allah. Tie the mouths of water skins, cover the pitchers, and turn the vessels upside down.