Abu Hurairah reported the Prophet (May peace be upon him) as saying:when you hear the cocks crowing, ask Allah for some of His grace, for they have seen as angel; but when you hear an ass braying, seek refuge in Allah from the devil, for it has seen the devil
Hadith No. 5102
Sunan Abu Dawud
Gradings:
Al-Albani:
Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Sahih
Zubair Ali Zai:
Sahih Bukhari (3303) Sahih Muslim (2729)