Hadithcore
Mishkat al-Masabih, 3480

Abud Darda’ told that he heard God’s Messenger say, “No one will suffer any bodily injury and forgive it* without God raising him a degree for it and removing a sin from him.” Tirmidhi and Ibn Majah transmitted it. * Literally "give it as <i>sadaqa</i>.”

وَعَنْ أَبِي الدَّرْدَاءِ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «مَا مِنْ رَجُلٍ يُصَابُ بِشَيْءٍ فِي جَسَدِهِ فَتَصَدَّقَ بِهِ إِلَّا رَفَعَهُ اللَّهُ بِهِ دَرَجَةً وَحَطَّ عَنْهُ خَطِيئَة» . رَوَاهُ التِّرْمِذِيّ وَابْن مَاجَه

References1 variant
In-Book Reference
Book 16, Hadith 30