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 inside the mosque is a sin and an evil deed, and burying it (in the earth and the like) is a good deed and an act of reward."
The chain of this hadith is hasan (good); Imam Abu Bakr bin Abi Shaybah narrated it in his work, and sahih hadith of this meaning are also found in other books of Sunan, which stress the etiquette, respect and cleanliness of the mosque.
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الصلاة / 362
Hadith Gradingمحدثین:إسناده حسن
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده حسن قال ابن حجر: إسناد حسن ، تحفة الأحوذي شرح سنن الترمذي: (1 / 397) » «أخرجه أحمد فى «مسنده» برقم: 22673، وابن أبى شيبة فى «مصنفه» برقم: 7542، وأورده ابن حجر فى "المطالب العالية"، 362، وأخرجه الطبراني فى«الكبير» برقم: 8091، 8092، 8093، 8094»