Authentic Supplication Number 248.

It is reported that the Prophet  said: "If you hear the braying of donkeys, then solicit Allah's protection from the shaytan, for they have seen a shaytan; and if you hear the crowing of the Rooster, then ask Allah of His Benevolence, for it has seen an Angel".

Reporters.
Agreed upon by Al-Bukhari and Muslim and Al-Albani included this hadeeth in The Authentic of Good Sayings as #175.