The Prophet ﷺ said, "No Muslim is pricked by a thorn or anything greater than that without it being a means of expiation for his sins."
حدثنا سفيان عن عبد الرحمن بن القاسم عن أبيه
عن النبي ﷺ قال ما من مسلم يشاك بشوكة فما فوقها إلا حطت من خطيئته
Its isnad is sahih, mentioned previously at 9191.