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 afflicted with a thorn prick or any hardship even less than that, his sins are forgiven in exchange for it.
Hadith Referenceمسند احمد / مسند النساء / 26385
Hadith Gradingحکم دارالسلام:حديث صحيح، وهذا إسناد ضعيف جدا لأجل عامر، خ: 5640، م: 2572