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."
حدثنا عبد الله بن يوسف قال أخبرنا مالك عن نافع
أن رسول الله ﷺ رأى بصاقا في جدار القبلة فحكه ثم أقبل على الناس فقال إذا كان أحدكم يصلي فلا يبصق قبل وجهه فإن الله قبل وجهه إذا صلى