Dalil

Quran Hud 11:9

وَلَئِنۡ أَذَقۡنَا ٱلۡإِنسَٰنَ مِنَّا رَحۡمَةٗ ثُمَّ نَزَعۡنَٰهَا مِنۡهُ إِنَّهُۥ لَيَـُٔوسٞ كَفُورٞ

Translation

And if We give man a taste of mercy from Us and then We withdraw it from him, indeed, he is despairing and ungrateful.