The Quran 39:08 (Surah az-Zumar)
“And when adversity touches man, he calls upon Allah, turning to Him in repentance.
But when Allah bestows on him a gift from Himself, man forgets all that he cried and prayed for, and sets up rivals unto Allah, and misleads others from Allah’s Path.”