Surah Fussilat, ayah 49

41:49

لَّا يَسۡـَٔمُ ٱلۡإِنسَٰنُ مِن دُعَآءِ ٱلۡخَيۡرِ وَإِن مَّسَّهُ ٱلشَّرُّ فَيَـُٔوسٞ قَنُوطٞ ٤٩

Llā yas'amul-insānu min du'ā'il-khayri wa im massahush-sharru faya'ūsun qanūt

Man is not weary of supplication for good [things], but if evil touches him, he is hopeless and despairing.