Mishkat al-Masabih 710
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا قَامَ أَحَدُكُمْ إِلَى الصَّلَاةِ فَلَا يَبْصُقْ أَمَامَهُ فَإِنَّمَا يُنَاجِي اللَّهَ مَا دَامَ فِي مُصَلَّاهُ وَلَا عَنْ يَمِينِهِ فَإِنَّ عَنْ يَمِينِهِ مَلَكًا وَلْيَبْصُقْ عَنْ يَسَارِهِ أَوْ تَحْتَ قَدَمِهِ فَيَدْفِنُهَا»
And from Abu Hurayrah, who said: The Messenger of Allah ﷺ said: "When one of you stands for prayer, let him not spit in front of him, for he is speaking privately with Allah as long as he is in his place of prayer, nor to his right, for on his right is an angel. Let him spit to his left or under his foot and bury it."