بَيْنَمَا رَجُلٌ يَمْشي بِطَريقٍ وَجَدَ غُصْنَ شَوكٍ عَلَى الطريقِ فأخَّرَه فَشَكَرَ اللهُ لَهُ ، فَغَفَرَ لَهُ
If a man who is walking along the road finds a thorny branch and removes it, God thanks him for that and forgives him .
[Bukhārī 2305, Muslim 4750, Riyāḍ al-Ṣāliḥīn 127]
Streets and public places. An unlikely concern for a Prophet of God. But it was all part of a comprehensive plan on the part of the Prophet Muhammad to establish a sound and prosperous Islamic society. And ensuring the public welfare along with the safety of public places was an inevitable part of that plan.
And so, the Prophet spent a considerable amount of time safeguarding the public road.