It is narrated from Sayyidah Aisha (may Allah be pleased with her) that indeed the Prophet (peace and blessings be upon him) said: "When a believer is afflicted with any hardship, it cleanses him of sins just as a furnace cleans iron of impurities."
Hadith Referenceمسند الشهاب / 1406
Hadith Gradingمحدثین:إسناده حسن
Hadith Takhrij«إسناده حسن ، وأخرجه المعجم الاوسط : 5351 ، الادب المفرد : 497 ، عبد بن حميد : 1487»