Quran 41:49 from Surah Fussilat on Divine Marvels.
لَّا يَسۡـَٔمُ ٱلۡإِنسَٰنُ مِن دُعَآءِ ٱلۡخَيۡرِ وَإِن مَّسَّهُ ٱلشَّرُّ فَيَـُٔوسٞ قَنُوطٞ
English translation: (Does) not get tired man of praying (for) the good but if touches him the evil then he gives up hope (and) despairs
Transliteration: la yasamu al-insanu min du'ai al-khayri wa-in massahu al-sharu fayausun qanutun