I came to the Messenger of Allah(ﷺ) who was saying prayer. He spat beneath his left foot.

Sunan Abu Dawud Book 2 Hadith 92

Sunan Abu Dawud #482

Prayer (Kitab Al-Salat) 2:92

Abu al-‘Ala’ reported on the authority of his father:

I came to the Messenger of Allah(ﷺ) who was saying prayer. He spat beneath his left foot.

Chapter: Spitting In A Masjid Is Disliked

Grade: Sahih (Al-Albani)