Allah's Messenger (ﷺ) saw some expectoration on the wall of the mosque; he took gravel and scraped it off and said, "If anyone of you wanted to spit he should neither spit in front of him nor on his right but he could spit either on his left or under his left foot."
Reference: Sahih al-Bukhari 408, 409 In-book : Book 8, Hadith 60 USC-MSA web (English) : Vol. 1, Book 8, Hadith 402 (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.