Surah Al-Israa

17:83

وَإِذَآ أَنْعَمْنَا عَلَى ٱلْإِنسَٰنِ أَعْرَضَ وَنَـَٔا بِجَانِبِهِۦ ۖ وَإِذَا مَسَّهُ ٱلشَّرُّ كَانَ يَـُٔوسًۭا

And when We bestow favor upon the disbeliever, he turns away and distances himself; and when evil touches him, he is ever despairing.

Tafsir 17:83

And when I grant man a blessing such as health and wealth, he turns away from thanking Allah and obeying Him, and moves further away out of pride. But when illness, poverty or the like befalls him, he becomes extremely despondent and hopeless of Allah’s mercy.