Sahih Bukhari | Volume 1 | Hadith Number 407

Narrated by Anas bin Malik
The Prophet said, "Spitting in the mosque is a sin and its expiation is to bury it."