Abu Saeed Khudri reported,

The Prophet ﷺ noticed some phlegm on the qiblah wall of the mosque and scraped it off with a pebble. He then forbade a man from spitting in front of himself or to his right, but rather to his left or under his left foot.Zuhri reported, having heard Humayd narrate from Abu Saeed, something similar.

Bukhari 414

Sahih

حدثنا علي بن عبد الله قال حدثنا سفيان حدثنا الزهري عن حميد بن عبد الرحمن

عن أبي سعيد

أن النبي ﷺ أبصر نخامة في قبلة المسجد فحكها بحصاة ثم نهى أن يبزق الرجل بين يديه أو عن يمينه ولكن عن يساره أو تحت قدمه اليسرى وعن الزهري سمع حميدا عن أبي سعيد نحوه

البخاري 414صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Spitting to the left or beneath the left foot
Numbering
Darussalam 414
Bukhari 414