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."
Sahih al-Bukhari Book 8, Hadith 62