Abu Huraira reported Allah's Messenger (ﷺ) as saying:
A person while walking along the path saw the branches of a tree lying there. He said: By Allah, I shall remove these from this so that these may not do harm to the Muslims, and he was admitted to Paradise.
Reference: Sahih Muslim 1914 c In-book : Book 45, Hadith 167 USC-MSA web (English) : Book 32, Hadith 6340 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.