Surah Ar-Rum, ayah 36

30:36

وَإِذَآ أَذَقۡنَا ٱلنَّاسَ رَحۡمَةٗ فَرِحُواْ بِهَاۖ وَإِن تُصِبۡهُمۡ سَيِّئَةُۢ بِمَا قَدَّمَتۡ أَيۡدِيهِمۡ إِذَا هُمۡ يَقۡنَطُونَ ٣٦

Wa idhā adhaqnan-nāsa rahmatan farihū bihā wa in tusibhum sayyi'atu bimā qaddamat aydīhim idhā hum yaqnatūn

And when We let the people taste mercy, they rejoice therein, but if evil afflicts them for what their hands have put forth, immediately they despair.