Hadithcore
Al-Adab Al-Mufrad, 229
sahih· Al-Albani

Abu Hurayra reported that the Prophet, (ﷺ), said, "A man came across a thorn in the road and said, 'I will remove this thorn so that it does not harm a Muslim man.' For that reason he was forgiven."

حَدَّثَنَا مُوسَى، قَالَ‏:‏ حَدَّثَنَا وُهَيْبٌ، عَنْ سُهَيْلٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ‏:‏ مَرَّ رَجُلٌ مُسْلِمٌ بِشَوْكٍ فِي الطَّرِيقِ، فَقَالَ‏:‏ لَأُمِيطَنَّ هَذَا الشَّوْكَ، لاَ يَضُرُّ رَجُلاً مُسْلِمًا، فَغُفِرَ لَهُ‏.‏

References2 variants
In-Book Reference
Book 11, Hadith 9
English Reference
Book 11, Hadith 229