Sahih Bukhari | Volume 1 | Hadith Number 405

Narrated by Anas bin Malik
The Prophet said, "A faithful believer while in prayer is speaking in private to his Lord, so he should neither spit in front of him nor to his right side but he could spit either on his left or under his foot."