Abdullah bin Umar reported,

The Messenger of Allah ﷺ saw some spittle on the wall facing the qiblah, so he scraped it off. Then he turned to the people and said, "When one of you is praying, he should not spit in front of his face, for Allah تبارك وتعالى is in front of his face when he prays."

Azami 3121

Sahih

عن ابن عمر

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

الأعظمي 3121صحيح
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 3121 (2nd edition)
Azami 3121