The author - may Allah shower blessings on him- mentioned among the things he reported from Abu Dharr (may Allah be pleased with him) that the Prophet (ﷺ) said, "The deeds of my Ummah were presented to me; the good and bad of it" that is, "I was informed about it; Allah made it known to me." Allah - the Mighty and Sublime - made it known to him, because it is Allah - free is He from all imperfections - who rules a thing to be allowed, He as well forbids and obligates. So, Allah presented the good and the bad deeds of the Ummah to our Prophet, Muhammad (ﷺ).
He found removal of harmful objects such as thorns, logs of wood, bottles, stones, excreta, and others from the path among their good deeds. So, removing every form of harm from the road is among good deeds.
The Prophet (ﷺ) had explained that clearing harmful objects from a road is charity; and as such, it is among the good deeds with the rewards of charity. He (ﷺ) also said, "Eeman has seventy-some branches, its peak is the saying, Laailaaha illaa Allah (there is none worthy of worship except Allah), the least of it is clearing harm from the road; Modesty is a branch of Eeman."(1) So if you find any harmful object on the road and you remove it; that counts as a righteous deed for you; a form of charity and a trait and branch of faith.
Conversely, placing harmful objects on the road of the Muslims definitely counts as an evil deed. Without doubts people who throw peels on roads in the markets, on people's paths, are sinners when these articles harm the Muslims. Allah, the Exalted, says,
“And those who annoy believing men and women undeservedly, they bear (on themselves) the crime of slander and plain sin.”
(Ahzaab: 58).
The scholars say: If an animal or a person stumbles as a result (of the peels) and breaks a bone, the person who dropped it will be held responsible. He will be liable to paying the blood money or the smaller charge if it does not reach the level of blood money. The point here is this act involves harming the Muslims.
A similar thing is that people pour out water in the market and harm others. Cars may drive through it and soil people's clothing thereby. It may also damage to the asphalt if the area becomes constantly waterlogged; it thaws and becomes damaged.
Importantly, we, the Muslim nation, display non-challance about these issues, as if they do not count; and it is unfortunate. A person would heedlessly throw a harmful object on the market roads and it breaks a glass; he may throws sticks, and thoughtlessly place stones on the road. Hence, it is desirable for us to remove any harmful object from the road whenever we find them since that constitutes charity and a righteous deed.
He then said, “I saw phlegm left unburied in the mosque among her bad deeds.” An-Nukha'ah (phlegm), also called An-Nukhaamah (in Arabic), is so named because it comes out from the Nukha'u (medulla). Phlegm may be left unburied in the mosque because at the time of the Messenger (ﷺ), the mosque was floored with pebbles; and as such, phlegm could easily be buried in the sand. However, the situation is different today without sands in the mosques. So if found, phlegm should be dubbed off with a handkerchief or something like that until it is removed.
You should know that phlegm in the mosque is prohibited; so,
whoever spits inside the mosque has committed a sin based on the saying of the Prophet (ﷺ), "Spittle in the mosque is a sin."(1) The Prophet (ﷺ) affirmed that it is sin and its expiation is that it is removed; i.e., if a person does it and intends to repent, then he must bury it. However, in our own times; he should scrape it with handkerchief or something similar until it is removed.
If this is the ruling regarding phlegm how about other worse things; such as what used to happen whereby an individual could enter the mosque with his footwear without turning it over to examine it. And perhaps dung is stuck to it which eventually drops in the mosque staining it thereby. Compare this with the phlegm and like things or even worse ones. For instance, a person may have a light tissue paper with him, he then blows his nose with it and hurls it unto the floor of the mosque; this is mischief! Without doubts the minds loathes such sight; how about when such is done in one of Allah's houses? If you spit in a handkerchief, put it in your pocket until you leave so you can throw it away in the designated places for that so no one is harmed.
And Allah Alone grants success.