Anas bin Malik reported,

The Messenger of Allah ﷺ said, "Spitting in the mosque is a sin, and its expiation is to bury it."

Muslim 1231

Sahih

و حدثنا يحيى بن يحيى وقتيبة بن سعيد قال يحيى أخبرنا وقال قتيبة حدثنا أبو عوانة عن قتادة

عن أنس بن مالك قال

قال رسول الله ﷺ البزاق في المسجد خطيئة وكفارتها دفنها

مسلم 1231صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Prohibition of spitting in the masjid during prayer and otherwise
Numbering
Darussalam 1231
Muslim 1231