The surah describes here an ironic situation: the unbelievers are outspoken in denying God’s oneness, yet when they suffer affliction they turn to none but Him, praying earnestly for His help. When He bestows His grace on them and removes their affliction they revert to their boastful claims and deny His favors: “When man suffers affliction, he cries out to Us; but once We bestow upon him a favor by Our grace, he says: ‘I have been given all this by virtue of my knowledge.’ By no means! It is but a test, yet most of them do not understand.”
This verse describes man if he does not accept the truth and turn back to his true Lord, following the path leading to Him and remaining on that path in all situations of strength or weakness. Affliction purges human nature of the desires and ambitions that blur its vision. It removes from it all alien influences that place a barrier between it and the truth. Therefore, when afflicted, it can easily recognize God and turn to Him alone. Yet when the testing times are over, and human nature again finds itself in easy and comfortable circumstances, man forgets what he said only a short while earlier. His nature is again turned away from the truth under the influence of his desires, and he looks at God’s favors and provisions only to say: “I have been given all this by virtue of my knowledge.” (Verse 49) This was said by Qarun, or Korah, in former times, and it is said by everyone who admires what he is able to obtain of wealth or position through some sort of ability or knowledge, forgetting who grants him these, namely the One who has made causes produce their effects and who grants everyone their provisions.
“By no means! It is but a test, yet most of them do not understand.” It is all just a test. Man either proves himself, shows that he is grateful to God and sets himself on the right way or he denies God’s favors, takes the wrong way and goes astray.
By an act of God’s grace, the Qur’an reveals this secret to us. It alerts us to the source of danger, warns us against failure in the test, and thus leaves us no excuse or argument. It reminds us of the fates of those who lived long before us, which were the result of something like the words spoken by many an unbeliever in the past: “I have been given all this by virtue of my knowledge.”
“Those who lived before their time said the same, but of no avail to them was all that they had ever done: for the very evil of their deeds recoiled upon them. Similarly, the wrongdoers among these present people will have the evil of their deeds recoil upon them. They will never be able to frustrate (God’s purpose).”
They are the same deviant words spoken by earlier peoples and which led them to ruin. Nothing of their knowledge, wealth or positions were of benefit to them. The same rule will apply to the present unbelievers, because God’s law will never change. “They will never be able to frustrate God’s purpose.” Indeed, God cannot be defied by His creation who remain weak, despite any appearance of power they may enjoy. As for what God has granted them of His favors and provisions, it is all subject to His will. He gives all His creation whatever He may determine for them, according to His wisdom, making it all a test for them which ensures that His will is done: “Are they not aware that it is God who grants sustenance in abundance, or gives it sparingly, to whomever He wills? In this there are signs to those who believe.” God’s signs are given to people so that they will benefit by the guidance they provide and will be led to faith. They must not turn them into causes of unbelief and rejection of the truth.

