The Messenger of Allah ﷺ noticed some spittle on the wall facing the qibla, 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 before his face when he prays."
حدثني يحيى عن مالك عن نافع
أن رسول الله ﷺ رأى بصاقا في جدار القبلة فحكه ثم أقبل على الناس فقال إذا كان أحدكم يصلي فلا يبصق قبل وجهه فإن الله تبارك وتعالى قبل وجهه إذا صلى