Supplication upon hearing the bray of a donkey
اَعُوْذُ بِاللّٰہِ مِنَ الشَّیْطٰنِ الرَّجِیْمِ I seek refuge with Allah from the accursed Satan.[Sunan Abu Dawud – 5102]
Supplication upon hearing the cock’s crow
اَللّٰہُمَّ اِنِّیْٓ اَسْئَلُکَ مِنْ فَضْلِکَ O Allah I ask for your favor. The Prophet ﷺ When you hear the cock’s crow, ask Allāh for His favor upon you for surely it has seen an angel.[Sunan Abu Dawud – 5102]
What to say when surprised or startled
سُبْحَانَ اللہِ اَللہُ اَکْبَرُ How Perfect Allah is, Allah is the Greatest.[Sahih Bukhari – 610]