كتاب البر والصلة والآداب
45  
The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
(36)
Chapter: The Virtue Of Removing A Harmful Thing From The Road
(36)
باب فَضْلِ إِزَالَةِ الأَذَى عَنِ الطَّرِيقِ، ‏ ‏
Sahih Muslim 1914 b

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

While a person was going along the path he found a thorny branch upon it. He pushed it to a side and Allah approved (this action) of his and (as a mark of appreciation) granted him pardon.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنْ سُمَىٍّ، مَوْلَى أَبِي بَكْرٍ عَنْ أَبِي، صَالِحٍ عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ بَيْنَمَا رَجُلٌ يَمْشِي بِطَرِيقٍ وَجَدَ غُصْنَ شَوْكٍ عَلَى الطَّرِيقِ فَأَخَّرَهُ فَشَكَرَ اللَّهُ لَهُ فَغَفَرَ لَهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 1914b
In-book reference : Book 45, Hadith 166
USC-MSA web (English) reference : Book 32, Hadith 6339
  (deprecated numbering scheme)