Reference : Hisn al-Muslim 229

إِذَا سَمِعْتُمْ نُبَاحَ الْكِلاَبِ وَنَهِيقَ الْحَمِيرِ بِاللَّيْلِ فَتَعَوَّذُوا بِاللَّهِ مِنْهُنَّ؛ فَإِنَّهُنَّ يَرَيْنَ مَا لاَ تَرَوْنَ


When you hear a dog barking or a donkey braying in the night, then seek refuge in Allah from them, for surely they have seen what you see not.

Reference:
Abu Dawud 4/327, Ahmad 3/306. Al-Albani graded it authentic in Sahih Abu 
Dawud 3/961.

Chapter: Upon hearing the barking of dogs at night