The Prophet (ﷺ) said, "Spitting in the mosque is a sin and its expiation is to bury it."

Sahih al-Bukhari Book 8 Hadith 65

Sahih al-Bukhari #415

Prayers (Salat) 8:65

Narrated Anas bin Malik:

The Prophet (ﷺ) said, "Spitting in the mosque is a sin and its expiation is to bury it."

Chapter: The expiation for spitting in the mosque

Grade: Sahih