Aswad reported,

Some young men from Quraysh came in to visit Ayesha while she was at Mina, and they were laughing.She asked, "What is making you laugh?"They replied, "So-and-so tripped over a tent rope and nearly lost his neck," or "his eye."She said, "Do not laugh, for I heard the Messenger of Allah ﷺ say, 'There is no Muslim who is pricked by a thorn or anything greater than that without a rank being recorded for him because of it and a sin being wiped away from him because of it.'"

Muslim 6561

Sahih

حدثنا زهير بن حرب وإسحق بن إبراهيم جميعا عن جرير قال زهير حدثنا جرير عن منصور عن إبراهيم

عن الأسود قال

دخل شباب من قريش على عائشة وهي بمنى وهم يضحكون فقالت ما يضحككم قالوا فلان خر على طنب فسطاط فكادت عنقه أو عينه أن تذهب فقالت لا تضحكوا فإني سمعت رسول الله ﷺ قال ما من مسلم يشاك شوكة فما فوقها إلا كتبت له بها درجة ومحيت عنه بها خطيئة

مسلم 6561صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Righteousness, maintaining ties, and good manners
Chapter
Reward of the believer for what afflicts him of illness, grief, or the like, even a thorn he is pricked by
Numbering
Darussalam 6561
Muslim 6561