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, let him not spit in front of him, for Allah is in front of him when he prays."

Muslim 1223

Sahih

حدثنا يحيى بن يحيى التميمي قال قرأت على مالك عن نافع

عن عبد الله بن عمر

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

مسلم 1223صحيح
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 1223
Muslim 1223