Az-Zumar 39:49
SAHIHفَإِذَا مَسَّ ٱلْإِنسَٰنَ ضُرٌّۭ دَعَانَا ثُمَّ إِذَا خَوَّلْنَٰهُ نِعْمَةًۭ مِّنَّا قَالَ إِنَّمَآ أُوتِيتُهُۥ عَلَىٰ عِلْمٍۭ ۚ بَلْ هِىَ فِتْنَةٌۭ وَلَٰكِنَّ أَكْثَرَهُمْ لَا يَعْلَمُونَ
And when adversity touches man, he calls upon Us; then when We bestow on him a favor from Us, he says, "I have only been given it because of [my] knowledge." Rather, it is a trial, but most of them do not know.
Fa izaa massal insaana durrun da'aanaa summa izaa khawwalnaahu ni'matam minna qaala innamaaa ootee tuhoo 'alaa 'ilm; bal hiya fitna tunw wa laakinna aksarahum laa ya'lamoon
Tafsir (Commentary)
<h2>How Man changes when He is blessed after suffering Harm</h2><p>Allah tells us how man, when he is suffering from harm, prays to Allah, turning to Him in repentance and calling upon Him, but when He makes things easy for him, he transgresses and commits sins. </p><div class="arabic uthmani">إِنَّمَآ أُوتِيتُهُ عَلَى عِلْمٍ</div><p>(Only because of knowledge I obtained it.) means, `because Allah knows that I deserve it; if it were not for the fact that Allah regards me as special, He would not have given me this.' Qatadah said, "Because I know that I deserve it." Allah says: </p><div class="arabic uthmani">بَلْ هِىَ فِتْنَةٌ</div><p>(Nay, it is only a trial,) meaning, `the matter is not as he claims; on the contrary, We have blessed him with this as a test to see whether he will be obedient or disobedient -- although We have prior knowledge of that.' In fact, it is a trial. </p><div class="arabic uthmani">وَلَـكِنَّ أَكْثَرَهُمْ لاَ يَعْلَمُونَ</div><p>(but most of them know not!) So they say what they say and claim what they claim. </p><div class="arabic uthmani">قَدْ قَالَهَا الَّذِينَ مِن قَبْلِهِمْ</div><p>(Verily, those before them said it,) means, the previous nations who came before said the same things and made the same claims, </p><div …
Other Translations
Now when hurt toucheth a man he crieth unto Us, and afterward when We have granted him a boon from Us, he saith: Only by force of knowledge I obtained it. Nay, but it is a test. But most of them know not.
Now, when trouble touches man, he cries to Us: But when We bestow a favour upon him as from Ourselves, he says, "This has been given to me because of a certain knowledge (I have)!" Nay, but this is but a trial, but most of them understand not!
When harm touches man, he calls to Us (for help), then when We have (rescued him from that harm and) changed it into a favour from Us, he says: "Only because of knowledge (that I possess) I obtained it." Nay, it is only a trial, but most of them know not!
When adversity touches the human being, he calls on Us. But then, when We favor him with a blessing from Us, he says, “I have attained this by virtue of my knowledge.” However, it is a test, but most of them do not know.