فَاِذَا مَسَّ الْاِنْسَانَ ضُرٌّ دَعَانَاۖ ثُمَّ اِذَا خَوَّلْنٰهُ نِعْمَةً مِّنَّاۙ قَالَ اِنَّمَآ اُوْتِيْتُهٗ عَلٰى عِلْمٍ ۗبَلْ هِيَ فِتْنَةٌ وَّلٰكِنَّ اَكْثَرَهُمْ لَا يَعْلَمُوْنَ ( الزمر: ٤٩ )
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 (az-Zumar 39:49)
Sahih International:
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. (Az-Zumar [39] : 49)
1 Mufti Taqi Usmani
When man is visited by a trouble, he prays to Us, but when, after that, We favor him with some blessing from Us, he says, “This is given to me because of (my) knowledge.” No, but this is a trial, yet most of them do not know.