Surah Al-An'am, ayah 44

6:44

فَلَمَّا نَسُواْ مَا ذُكِّرُواْ بِهِۦ فَتَحۡنَا عَلَيۡهِمۡ أَبۡوَٰبَ كُلِّ شَيۡءٍ حَتَّىٰٓ إِذَا فَرِحُواْ بِمَآ أُوتُوٓاْ أَخَذۡنَٰهُم بَغۡتَةٗ فَإِذَا هُم مُّبۡلِسُونَ ٤٤

Falammā nasū mā dhukkirū bihī fatahnā 'alayhim abwāba kulli shay'in hattā idhā farihū bimā ūtū akhadhnāhum baghtatan fa idhā hum mublisūn

So when they forgot that by which they had been reminded,304 We opened to them the doors of every [good] thing until, when they rejoiced in that which they were given, We seized them suddenly, and they were [then] in despair.

Footnotes

304 i.e., their trial by poverty and hardship or the warnings of their prophets.