It is narrated from Hazrat Aisha (may Allah be pleased with her) that the Messenger of Allah (peace and blessings be upon him) said: Whenever a Muslim is pricked by a thorn or suffers any affliction even less than that, his sins are expiated in return for it.
Hadith Referenceمسند احمد / مسند النساء / 24828
Hadith Gradingحکم دارالسلام:حديث صحيح، أبو أويس ضعيف، ولكن متابع، خ: 5640، م: 2572