Sahih Muslim, Book 45, Hadith 166 (Muslim 6597)

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.