The Messenger of Allah (ﷺ) saw spittle on the wall towards Qibla, and scratched it away and then turning to the people said: When any one of you prays, he must not spit in front of him, for Allah is in front of him when he is engaged in prayer.
Reference: Sahih Muslim 547 a In-book : Book 5, Hadith 61 USC-MSA web (English) : Book 4, Hadith 1116 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.