Abu Saeed Khudri reported,

The Prophet ﷺ saw some phlegm on the qiblah wall of the mosque and scraped it off with a pebble. He then forbade anyone from spitting to his right or in front of him, instructing instead that he spit to his left or under his left foot.

Muslim 1225

Sahih

حدثنا يحيى بن يحيى وأبو بكر بن أبي شيبة وعمرو الناقد جميعا عن سفيان قال يحيى أخبرنا سفيان بن عيينة عن الزهري عن حميد بن عبد الرحمن

عن أبي سعيد الخدري

أن النبي ﷺ رأى نخامة في قبلة المسجد فحكها بحصاة ثم نهى أن يبزق الرجل عن يمينه أو أمامه ولكن يبزق عن يساره أو تحت قدمه اليسرى ح

مسلم 1225صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Prohibition of spitting in the masjid during prayer and otherwise
Numbering
Darussalam 1225
Muslim 1225