'A'isha reported Allah's Messenger (ﷺ) 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 that.
Hadith ReferenceSahih Muslim / The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship / Hadith: 2572