Sure Az-Zumar

39:8

۞ وَإِذَا مَسَّ ٱلْإِنسَٰنَ ضُرٌّۭ دَعَا رَبَّهُۥ مُنِيبًا إِلَيْهِ ثُمَّ إِذَا خَوَّلَهُۥ نِعْمَةًۭ مِّنْهُ نَسِىَ مَا كَانَ يَدْعُوٓا۟ إِلَيْهِ مِن قَبْلُ وَجَعَلَ لِلَّهِ أَندَادًۭا لِّيُضِلَّ عَن سَبِيلِهِۦ ۚ قُلْ تَمَتَّعْ بِكُفْرِكَ قَلِيلًا ۖ إِنَّكَ مِنْ أَصْحَٰبِ ٱلنَّارِ

Und wenn dem Menschen Unheil widerfährt, ruft er seinen Herrn an, indem er sich Ihm reuig zuwendet. Wenn Er ihm hierauf Gunst von Sich gewährt, vergißt er, worum er zuvor angerufen hat, und er stellt Allah andere als Seinesgleichen zur Seite, um (die Menschen) von Seinem Weg ab in die Irre zu führen. Sag: Genieße deinen Unglauben ein wenig; du gehörst ja zu den Insassen des (Höllen)feuers.

Tafsir 39:8

And when the disbeliever is afflicted by difficulty, such as illness, loss of wealth or fear of drowning, he calls upon his Lord to remove the difficulty which is upon him, turning to Him alone. Then when he grants him a favour by removing the difficulty which afflicted him, he leaves whom he used to beseech before, which is Allah, and he makes for Allah associates which he worships besides Him. O Messenger, say to one whose condition this is: “Enjoy your disbelief for as long as you live, which is a short time, as you are amongst the people of the fire who will be inseparable from it on the Day of Judgment, like a companion is inseparable from his companion”.