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."

Bukhari 406

Sahih

حدثنا عبد الله بن يوسف قال أخبرنا مالك عن نافع

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

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

البخاري 406صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Scraping spit off the masjid with one's hand
Numbering
Darussalam 406
Bukhari 406