Musnad Ahmad 8064
حَدَّثَنَا هَاشِمٌ ، حَدَّثَنَا لَيْثٌ ، عَنْ جَعْفَرِ بْنِ رَبِيعَةَ ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ هُرْمُزَ ، عَنْ أَبِي هُرَيْرَةَ ، عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، أَنَّهُ قَالَ: " إِذَا سَمِعْتُمْ صِيَاحَ الدِّيَكَةِ مِنَ اللَّيْلِ، فَإِنَّمَا رَأَتْ مَلَكًا، فَسَلُوا اللَّهَ مِنْ فَضْلِهِ، وَإِذَا سَمِعْتُمْ نُهَاقَ الْحِمَارِ، فَإِنَّهُ رَأَى شَيْطَانًا، فَتَعَوَّذُوا بِاللَّهِ مِنَ الشَّيْطَانِ" .
Hashim narrated to us; Layth narrated to us, from Jaʿfar ibn Rabiʿah, from ʿAbd ar-Rahman ibn Hurmuz, from Abu Hurayrah, from the Messenger of Allah ﷺ, that he said: "When you hear the crowing of roosters at night, they have seen an angel, so ask Allah for His bounty. And when you hear the braying of a donkey, it has seen a devil, so seek refuge with Allah from Shaytan."