Sahih Muslim, Book 5, Hadith 72 (Muslim 1225)

Abdullah b. Shakhkhir reported on the authority of his father that he said:

I said prayer with the Messenger of Allah (ﷺ) and saw him spitting and rubbing it off with his shoe.