Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever enters this mosque and spits or coughs up phlegm should dig a hole and bury it. If he cannot do that, let him spit into his garment and then take it outside."

Azami 3127

Hasan

عن أبي هريرة يقول

قال رسول الله ﷺ: من دخل هذا المسجد فبزق فيه، أو تنخم فليحفر فليدفنه، فإن لم يفعل فليبزق في ثوبه، ثم ليخرج به.

الأعظمي 3127حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Prohibition of spitting in the masjid and towards the qibla
Numbering
Jami al-Kamil 3127 (2nd edition)
Azami 3127