Jami` at-Tirmidhi, Book 48, Hadith 90 (In-Book) ⓘ
Abu Hurairah [may Allah be pleased with him] narrated that: The Prophet said: “when you hear the crowing of the roosters, then ask Allah of His bounty, for verily they have seen an angel. When you hear the braying of a donkey, then seek refuge in Allah from Shaitan, [the rejected] for, verily, it has seen a Shaitan.”
حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا اللَّيْثُ، عَنْ جَعْفَرِ بْنِ رَبِيعَةَ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، رضى الله عَنْهُ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " إِذَا سَمِعْتُمْ صِيَاحَ الدِّيَكَةِ فَاسْأَلُوا اللَّهَ مِنْ فَضْلِهِ فَإِنَّهَا رَأَتْ مَلَكًا وَإِذَا سَمِعْتُمْ نَهِيقَ الْحِمَارِ فَتَعَوَّذُوا بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ فَإِنَّهُ رَأَى شَيْطَانًا " . قَالَ هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ .
also referenced under: Hadith 3459 (Reference) & Volume 6, Book 45, Hadith 3459 (DarusSalam)