The Prophet ﷺ said, "A man was walking along a road when he found a thorny branch. He said, 'I will certainly move this aside, hoping that Allah will forgive me because of it.' So he moved it, and Allah forgave him for it and admitted him into Paradise."
وبإسناده عن النبي ﷺ قال بينما رجل يمشي على طريق وجد غصن شوك فقال لأرفعن هذا لعل الله عز وجل يغفر لي به فرفعه فغفر الله له به وأدخله الجنة