Quran 39:8 from Surah Az-Zumar on Divine Marvels.
۞وَإِذَا مَسَّ ٱلۡإِنسَٰنَ ضُرّٞ دَعَا رَبَّهُۥ مُنِيبًا إِلَيۡهِ ثُمَّ إِذَا خَوَّلَهُۥ نِعۡمَةٗ مِّنۡهُ نَسِيَ مَا كَانَ يَدۡعُوٓاْ إِلَيۡهِ مِن قَبۡلُ وَجَعَلَ لِلَّهِ أَندَادٗا لِّيُضِلَّ عَن سَبِيلِهِۦۚ قُلۡ تَمَتَّعۡ بِكُفۡرِكَ قَلِيلًا إِنَّكَ مِنۡ أَصۡحَٰبِ ٱلنَّارِ
English translation: And when touches [the] man adversity he calls (to) his Lord turning to Him then when He bestows on him a favor from Himself he forgets (for) what he used to call he used to call [to] Him before before and he sets up to Allah rivals to mislead from His Path Say Enjoy in your disbelief (for) a little Indeed, you (are) of (the) companions (of) the Fire
Transliteration: wa-idha massa al-insana durrun da'a rabbahu muniban ilayhi thumma idha khawwalahu ni'matan min'hu nasiya ma kana yad'u ilayhi min qablu waja'ala lillahi andadan liyudilla an sabilihi qul tamatta' bikuf'rika qalilan innaka min ashabi al-nari