Sahih al-Bukhari, Volume 1, Book 8, Hadith 407 (USC-MSA) ⓘ
Narrated Anas bin Malik: The Prophet said, "Spitting in the mosque is a sin and its expiation is to bury it."
حَدَّثَنَا آدَمُ، قَالَ حَدَّثَنَا شُعْبَةُ، قَالَ حَدَّثَنَا قَتَادَةُ، قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ، قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم " الْبُزَاقُ فِي الْمَسْجِدِ خَطِيئَةٌ، وَكَفَّارَتُهَا دَفْنُهَا " .
also referenced under: Book 8, Hadith 65 (In-Book) & Hadith 415 (DarusSalam)