Shaykh Muḥammad ibn Ṣāliḥ al-ʿUthaymīn:
Anas ibn Mālik narrates that the Prophet ﷺ said:
“When Allāh wants good for his servant He hastens for him punishment in the worldly life, and when Allāh wants bad for him He withholds (the punishment) from him until He meets him on the Day of Judgment”.
All affairs are in the Hand of Allāh [the Majestic] and (happen) by way of His will as Allāh says about Himself:
۞ عَّالٌ لِّمَا يُرِيدُ
“Doer of whatsoever He intends (or wills)”. [Q 85:16]
۞ إِنَّ اللَّهَ يَفْعَلُ مَا يَشَاءُ
“Verily! Allāh does what He wills.” [Q 22:18]
Therefore, all affairs are in the Hand of Allāh. Mankind is not free from error, sins, or falling short in performing (Islamic) obligations, and as such when Allāh wants good for His servant He hastens for him punishment in the worldly life, either in his wealth or family or in his self or someone whom he has ties with; the crucial point is the punishment is hastened for him, because punishments expiate bad deeds.
So if punishment is hastened and Allāh expiates by way of that the servant’s bad deeds, then certainly he will meet Allāh free of any sin, for indeed the calamities and tribulations (he endured) purified him. It may even be the case that an individual’s death would be difficult (for him) due to a remaining sin or two in order for the servant to leave the dunya pure from sin. This is a blessing due to the fact that punishment in the dunya is lighter than the punishment in the hereafter.
However, if Allāh wants bad for his servant He gives him respite and lures him and overwhelms him with a life of ease and prosperity and protects him from adversity, such that he (the servant) becomes arrogant – Allāh’s refuge is sought- and rejoices disgracefully for what Allāh [the Majestic] blessed him with; and then meets his Lord submerged in his sins and is therefore punished for them in the hereafter -we ask Allāh for protection-
So if you see a person defiantly disobedient to Allāh, and Allāh shelters him from adversity and overwhelms him with prosperity then know that certainly Allāh wants bad for him. Why?! Because Allāh delayed the punishment upon him until He meets him on the Day of Judgment.
He then went on to mention in this ḥadīth that the magnitude of the reward is determined by the magnitude of the adversity; meaning the greater the adversity, the greater the reward.
Therefore, the easy adversity has a lighter reward, and severe adversity has a large reward because Allāh [the Majestic]– bestows great bounty on mankind. When he tests them with adversity He gives them, due to it, abundant reward, and when the calamity is minor then such is the reward.
Verily when Allāh loves a people He tests them; so whoever is content, then for him is contentment (reward), and whoever is discontent then for him is discontentment (as a result).
This is also glad tidings for the believer, when he is tested with a calamity he should not think that Allāh – The One free and above all imperfections – hates him, rather this could well be a sign of Allāh’s love for His servant. Allāh [the Majestic] tests him with calamities, and if he is content (with Allāh’s decree), patient and anticipates a reward, then for him is contentment (reward). And if he is discontent then for him is discontentment.
In this (ḥadīth) is an encouragement for one to be patient upon the calamities so that it can be written that he is from those whom Allāh [the Majestic] is pleased.