إِذَا لَمْ يَكُنْ عَنْ يَسَارِهِ فَارِغًا، وَإِبَاحَةِ دَلْكِ الْبُزَاقِ بِقَدَمِهِ إِذَا بَزَقَ فِي صَلَاتِهِ
When his left side is not empty, and when he spits during prayer, it is also permissible to rub it with his foot.
Sayyiduna Tariq bin Abdullah Muharibi (may Allah be pleased with him) narrates that the Messenger of Allah (peace be upon him) said: "When you are in prayer, do not spit in front of you or to your right side, but spit to your left side; if it is not empty, then under your left foot, then rub it." Mansur says: That is, rub it into the ground.