Sahih Muslim · Hadith 1260
The Book of Mosques and Places of Prayer - كتاب الْمَسَاجِدِ وَمَوَاضِعِ الصَّلاَةِ
حدثنا يحيى بن حبيب الحارثي، حدثنا خالد، - يعني ابن الحارث - حدثنا شعبة، قال سألت قتادة عن التفل، في المسجد فقال سمعت أنس بن مالك، يقول سمعت رسول الله صلى الله عليه وسلم يقول " التفل في المسجد خطيئة وكفارتها دفنها " .
Shu'ba reported: I asked Qatada about spitting, in the mosque. He said: I heard Anas b. Malik say: I heard the Messenger of Allah (may peace be upon him) say: Spitting in the mosque is a sin, and its expiation is that it should be buried.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).