It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Spitting in the mosque is an evil deed, and burying it in the soil is a good deed."
Imam Abu Ya'la al-Mawsili (may Allah have mercy on him) also recorded this narration in the same way through Abu Bakr bin Abi Shaybah (may Allah have mercy on him).
Al-Hasan bin al-Sabbah al-Bazzar (may Allah have mercy on him) narrated with his chain from Sayyiduna Abu Umamah (may Allah be pleased with him) these words, that the Messenger of Allah (peace and blessings be upon him) said: "Spitting in the mosque is a sin, and its expiation is burying it."
And Isma'il (may Allah have mercy on him) narrated with his chain, through Sayyiduna Abu Umamah (may Allah be pleased with him), this saying of the Messenger of Allah (peace and blessings be upon him): "Whoever spits in the mosque and does not bury it, that is a sin; and if he buries it, that is a good deed."
I (Allamah al-Busiri (may Allah have mercy on him)) say that Imam Ahmad bin Hanbal (may Allah have mercy on him) recorded it in his Musnad through Zayd bin al-Hubab (may Allah have mercy on him), that Abu Ghalib (may Allah have mercy on him) heard Sayyiduna Abu Umamah (may Allah be pleased with him) narrate this from the Messenger of Allah (peace and blessings be upon him); and this hadith is hasan (good).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1008
Hadith Gradingمحدثین:إسناده حسن
Hadith Takhrij«هذا حديث حسن» «(1008/1) أخرجه مسند أحمد برقم: 21740، وأخرجه المعجم الكبير للطبراني برقم: 8091، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 2000» «(1008/4) أخرجه المعجم الكبير للطبراني برقم: 8092، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 2002»