The Messenger of Allah ﷺ said: When a man stands with the intention of saying prayer, or if any of you says prayer, he should not spit before him, nor at his right side; but he should do so at his left side, if there is a place for it; or he should spit under his left foot and then rub it off.
قَالَ رَسُولُ اللَّهِ ﷺ إِذَا قَامَ الرَّجُلُ إِلَى الصَّلاَةِ أَوْ إِذَا صَلَّى أَحَدُكُمْ فَلاَ يَبْزُقْ أَمَامَهُ وَلاَ عَنْ يَمِينِهِ وَلَكِنْ عَنْ تِلْقَاءِ يَسَارِهِ إِنْ كَانَ فَارِغًا أَوْ تَحْتَ قَدَمِهِ الْيُسْرَى ثُمَّ لْيَقُلْ بِهِ