حَدَّثَنَا عَبْدُ اللهِ بْنُ صَالِحٍ قَالَ: حَدَّثَنِي اللَّيْثُ قَالَ: حَدَّثَنِي جَعْفَرُ بْنُ رَبِيعَةَ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ هُرْمُزَ، عَنْ أَبِي هُرَيْرَةَ، عَنْ رَسُولِ اللهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنَّهُ قَالَ: إِذَا سَمِعْتُمْ صِيَاحَ الدِّيَكَةِ مِنَ اللَّيْلِ، فَإِنَّهَا رَأَتْ مَلَكًا، فَسَلُوا اللَّهَ مِنْ فَضْلِهِ، وَإِذَا سَمِعْتُمْ نُهَاقَ الْحَمِيرِ مِنَ اللَّيْلِ، فَإِنَّهَا رَأَتْ شَيْطَانًا، فَتَعَوَّذُوا بِاللَّهِ مِنَ الشَّيْطَانِ.
It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When you hear the crowing of roosters at night, then ask Allah for His bounty, for they have seen an angel. And when you hear the braying of donkeys at night, then seek refuge with Allah from Satan, for they have seen a devil."