Sahih Muslim, Book 45, Hadith 61 (Muslim 6492)

'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.