Surah Az-Zumar 39:8

The Troops · Verse 8 of 75 · Juz 23 · Page 459

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

And when adversity touches man, he calls upon his Lord, turning to Him [alone]; then when He bestows on him a favor from Himself, he forgets Him whom he called upon before, and he attributes to Allāh equals to mislead [people] from His way. Say, "Enjoy your disbelief for a little; indeed, you are of the companions of the Fire."

Translation: Saheeh International

Tafsir

And when distress befalls a person that is the disbeliever he supplicates his Lord he implores turning returning to Him penitently. Then when He bestows on him a grace from Himself he forgets he neglects Him Whom he had supplicated implored before namely God in other words mā functions as min ‘whom’ and sets up equals …

Excerpt from Tafsir al-Jalalayn, commentary on 39:8, via Quran.com. The reader has the full commentary and 9 more tafsirs.