It is narrated from Sayyiduna Mu'adh that the Prophet (peace and blessings be upon him) said: Whoever, while fasting, visits a sick person and attends a funeral, his sins will be forgiven except if he commits a new sin thereafter.
Hadith Referenceمسند احمد / مسند المكيين / 15642
Hadith Gradingحکم دارالسلام:إسناده ضعيف لضعف زبان بن فائد، وابن لهيعة سيئ الحفظ، وسهل بن معاذ سيئ الحفظ إن روى عنه زبان