Imam Baqir (a.s) said: “Whenever God wishes to honor one who has committed sins, He will make him ill, or needy, or make him suffer from a difficult death to compensate for his sins. Whenever God wishes to humiliate someone who has done some good deeds, He will make him perfectly healthy, or improve his living conditions, or make his death an easy one for him to compensate for his good deeds (in this world before he goes to meet his Lord).”

Hadith 1716 from the book Mishkatul anwar fi ghurur il akhbar

Imam Sadiq (a.s) said: “Any believer is reminded (of God) once every forty days by either a tragic event of a financial or physical nature for himself or his children, or a sort of sadness which he does not understand the reason for. Then he will be rewarded.”

Hadith 1713 from the book Mishkatul anwar fi ghurur il akhbar

“If a human wants to escape from anything he should escape from his own ignorance and go towards knowledge, from the unknown to the apparent,  escape from the creatures to the Creator so that he would benefit from worldly and heavenly advantages, divine paradise and permanent prosperity. Such an escape is in fact from wrongdoing to common sense, from this world to the hereafter, from Hell to Paradise and lastly from Shaytan to Allah.”

Sheikh Husayn Ansariyan pg 210 of Commentary of Kumayl Supplication