The Prophet ﷺ said, "Spitting phlegm in the mosque is a sin, and its expiation is to bury it."
حدثنا عبد الوهاب عن سعيد عن قتادة
أن النبي ﷺ قال النخاعة في المسجد خطيئة وكفارتها دفنها
Its isnad is sahih, mentioned previously at .