صحيح البخاري
From Sahih Bukhari (Hadith 415):
Narrated Anas bin Malik:The Prophet (ﷺ) said, "Spitting in the mosque is a sin and its expiation is to bury it
Reference: Bukhari 415