228
The Prophet ﷺ said:
إِذَا سَمِعْتُمْ صِيَاحَ الدِّيَكَةِ فَاسْأَلُوا اللَّهَ مِنْ فَضْلِهِ، فَإِنَّهَا رَأَتْ مَلَكًا، وَإِذَا سَمِعْتُمْ نَهِيقَ الْحِمَارِ فَتَعَوَّذُوا بِاللَّهِ مِنَ الشَّيْطَانِ، فَإِنَّهُ رَأَى شَيْطَانًا
Idha sami'tum siyahad-diyakati fas'alullaha min fadlih, fa innaha ra'at malaka, wa idha sami'tum nahiqal-himari fata'awwadhu billahi minash-shaytan, fa innahu ra'a shaytana
When you hear roosters crowing, ask Allah for His bounty, for they have seen an angel; and when you hear a donkey braying, seek refuge in Allah from Satan, for it has seen a devil.
Source Ṣaḥīḥ al-Bukhārī 3303 Ṣaḥīḥ · Ṣaḥīḥ Muslim, The Book Pertaining to the Remembrance of Allah, Supplication, Repentance and Seeking Forgiveness — site no. 6751 (similar wording) Ṣaḥīḥ
Compiler cites al-Bukhārī (Fatḥ al-Bārī 6/350); Muslim 4/2092