Dalil

Quran Al-Fajr 89:15

فَأَمَّا ٱلۡإِنسَٰنُ إِذَا مَا ٱبۡتَلَىٰهُ رَبُّهُۥ فَأَكۡرَمَهُۥ وَنَعَّمَهُۥ فَيَقُولُ رَبِّيٓ أَكۡرَمَنِ

Translation

And as for man, when his Lord tries him and [thus] is generous to him and favors him, he says, "My Lord has honored me."