The Messenger of Allah ﷺ said, "There was a tree branch on the road that was harming people, so a man removed it, and he was admitted into Paradise."
وبإسناده هذا قال رسول الله ﷺ كان على الطريق غصن شجرة يؤذي الناس فأماطها رجل فأدخل الجنة
Its isnad is sahih. It occurred previously at 2/404, 416 of the printed edition. As for his words "famahaha" (so he removed it), the pronoun does not refer back to "the tree" but rather to "the branch," and it was made feminine here due to grammatical proximity, following the pattern of the Almighty's saying, "Indeed the mercy of Allah is near" [Araf 7:56].