The Prophet (ﷺ) said, "None of you should spit in front or on his right but he could spit…

Sahih al-Bukhari Book 8 Hadith 62

Sahih al-Bukhari #412

Prayers (Salat) 8:62

Narrated Anas:

The Prophet (ﷺ) said, "None of you should spit in front or on his right but he could spit either on his left or under his foot."

Chapter: It is forbidden to spit on the right side while in Salat (prayers)

Grade: Sahih