He whom Allah intends good
Abu Hurayrah (radi Allahu anhu) reported that the Messenger of Allah (sal Allahu alaihi wa sallam) said: “He whom Allah intends good, He makes him to suffer from some affliction.”
Troubles of this world like grief, calamity, disease, poverty, loss of life and property, etc., have a benign aspect for a Muslim in the sense that on account of them he turns towards Allah and begs mercy and compassion from Him because of which his sins are forgiven. Thus, in these troubles there is a blessing for him in the Hereafter.
And Allah Knows Best!