The prohibition against spitting in the mosque and the command to remove spit from it when it is found there. The command to keep the mosque free of impurities

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

309. Chapter: The prohibition against spitting in the mosque and the command to remove spit from it when it is found there. The command to keep the mosque free of impurities

1693. Anas reported that the Prophet, may Allah bless him and grant him peace, said, "Spitting in the mosque is a wrong action and its expiation is to bury it." [Agreed upon]

What is meant by burying it is to cover it with earth when the floor of the mosque consists of dirt, sand or the like. Abu'l-Mahasin ar-Ruyani, one of our companions, said in his book, al-Bahr, "It is said that what is meant by 'burying it' is to remove it from the mosque. If the mosque is paved or whitewashed and he rubs it with his shoe or something else as many ignorant people do, that is not burying it. It is increasing the error and the amount of filth in the mosque. After that the person who did that should wipe it with a cloth or his hand or something else or wash it,"

1694. 'A'isha reported that the Messenger of Allah, may Allah bless him and grant him peace, saw some mucous, spittle or phlegm on the wall of the qibla and he scraped it off. [Agreed upon]

1695. Anas reported that the Messenger of Allah, may Allah bless him and grant him peace, said, "These mosques are not a suitable place for any of this urine or filth. They are for remembrance of Allah Almighty and reciting the Qur'an," or as the Messenger of Allah said. [Muslim]