Abu Dharr reported,

The Prophet ﷺ said, "The deeds of my nation were presented to me, both the good and the bad. Among the good deeds I found was the removal of harmful objects from the road, and among the bad deeds I found was phlegm left in the mosque without being buried."

Azami 14760

Sahih

عن أبي ذر

عن النبي ﷺ قال: عرضت علي أعمال أمتي، حسنها وسيتها، فوجدت في محاسن أعمالها الأذى يماط عن الطريق. ووجدت في مساوئ أعمالها النخاعة تكون في المسجد لا تدفن.

الأعظمي 14760صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of the road, walking, and travel
Section
Virtue of removing harm from the road
Numbering
Jami al-Kamil 14760 (2nd edition)
Azami 14760