Tariq bin Abdullah reported,

The Messenger of Allah ﷺ said, "When a man stands for prayer, or when one of you prays, he should not spit in front of him, nor to his right, but rather toward his left side if it is clear, or under his left foot, then rub it out with it."

Abu Dawud 478

Sahih

حدثنا هناد بن السري عن أبي الأحوص عن منصور عن ربعي

عن طارق بن عبد الله المحاربي قال

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

أبو داود 478صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
Dislike of spitting in the masjid
Numbering
Darussalam 478
Abu Dawud 478