Sahih Muslim
The Book of Virtue, Good Manners and Joining of the Ties of Relationship (Kitab Al-Birr was-Salat-I-wal-Adab)
Book Number: 032 / Hadith Number: 6238
'A'isha reported Allah's Messenger (may peace be upon him) as saying: A believer does not receive (the trouble) of running a thorn or more than that but Allah elevates him in rank or effaces his sins because of tbat.