Al-Isra' - 17:83

وَإِذَا أَنْعَمْنَا عَلَى الإِنسَانِ أَعْرَضَ وَنَأَى بِجَانِبِهِ وَإِذَا مَسَّهُ الشَّرُّ كَانَ يَؤُوسًا
[17:83]
And when We bestow favor on man, he turns aside and behaves proudly, and when evil afflicts him, he is despairing.
Yet when We bestow Our favours on man, he turns away and becomes remote on his side (instead of coming to Us), and when evil seizes him he gives himself up to despair!
And when We make life pleasant unto man, he turneth away and is averse; and when ill toucheth him he is in despair.