Quran 30:36 from Surah Ar-Room on Divine Marvels.
وَإِذَآ أَذَقۡنَا ٱلنَّاسَ رَحۡمَةٗ فَرِحُواْ بِهَاۖ وَإِن تُصِبۡهُمۡ سَيِّئَةُۢ بِمَا قَدَّمَتۡ أَيۡدِيهِمۡ إِذَا هُمۡ يَقۡنَطُونَ
English translation: And when We cause men to taste We cause men to taste mercy they rejoice therein But if afflicts them an evil for what have sent forth their hands behold They despair
Transliteration: wa-idha adhaqna al-nasa rahmatan farihu biha wa-in tusib'hum sayyi-atun bima qaddamat aydihim idha hum yaqnatuna