Imam Bukhari narrates: Adam narrated to us the hadeeth, he said: Shu'bah narrated to us the hadeeth, he said: Qatadah narrated to us the hadeeth, he said: I heard Hazrat Anas bin Malik (may Allāh be pleased with him), he narrated that the Prophet ﷺ said:
Indeed, when the believer is in prayer, he is in intimate conversation with his Rabb, so let him not spit in front of himself nor towards his right side, but let him spit towards his left side or under his foot.
حَدَّثَنَا آدَمُ، قَالَ حَدَّثَنَا شُعْبَةُ، قَالَ حَدَّثَنَا قَتَادَةُ، قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ، قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم " إِنَّ الْمُؤْمِنَ إِذَا كَانَ فِي الصَّلاَةِ فَإِنَّمَا يُنَاجِي رَبَّهُ، فَلاَ يَبْزُقَنَّ بَيْنَ يَدَيْهِ وَلاَ عَنْ يَمِينِهِ، وَلَكِنْ عَنْ يَسَارِهِ أَوْ تَحْتَ قَدَمِهِ ".
Reference: Sahih Al Bukhari 413