It is narrated from Hazrat Abu Saeed Khudri (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: Whatever worry, hardship, grief, illness, or pain afflicts a Muslim, Allah expiates his sins through it.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 11336
Hadith Gradingحکم دارالسلام:حديث صحيح لغيره، م: 2573 وهذا إسناد ضعيف لجهالة إسماعيل، ويزيد بن محمد القرشي لم يسمع من أبى سعيد الخدري، ولم يدرك أحدا من الصحابة