فَإِذَا مَسَّ ٱلْإِنسَـٰنَ ضُرٌّ دَعَانَا ثُمَّ إِذَا خَوَّلْنَـٰهُ نِعْمَةً مِّنَّا قَالَ إِنَّمَآ أُوتِيتُهُۥ عَلَىٰ عِلْمٍۭ ۚ بَلْ هِىَ فِتْنَةٌ وَلَـٰكِنَّ أَكْثَرَهُمْ لَا يَعْلَمُونَ
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
When man suffers some affliction, he cries out to Us, but when We favour him with Our blessing, he says, ‘All this has been given to me because of my knowledge’- it is only a test, though most of them do not know it.
When harm touches a person, he calls on us; then when we grant him a blessing from us, he says, "I was given this only because of knowledge I possess." No — it is a test, but most of them do not know.