Sahih Muslim #2572 c
The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship 45:61
'A'isha reported Allah's Messenger (ﷺ) as saying:
A believer does not undergo (the trouble) of running a thorn or more than that when Allah effaces his sins.