Sahih Muslim

Sahih Muslim 554 a

The prohibition of spitting in the masjid, during prayer and at other times. The prohibition of a praying person spitting in front of him or to his right
Arabic hadith text
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ الْعَنْبَرِيُّ، حَدَّثَنَا أَبِي، حَدَّثَنَا كَهْمَسٌ، عَنْ يَزِيدَ بْنِ عَبْدِ اللَّهِ بْنِ الشِّخِّيرِ، عَنْ أَبِيهِ، قَالَ صَلَّيْتُ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم فَرَأَيْتُهُتَنَخَّعَ فَدَلَكَهَا بِنَعْلِهِ ‏.‏
Translation
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.