Sahih al-Bukhari 6111
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّ أَحَدَكُمْ إِذَا كَانَ فِي الصَّلاَةِ فَإِنَّ اللَّهَ حِيَالَ وَجْهِهِ، فَلاَ يَتَنَخَّمَنَّ حِيَالَ وَجْهِهِ فِي الصَّلاَةِ "
Narrated `Abdullah bin `Umar:
While the Prophet (ﷺ) was praying, he saw sputum (on the wall) of the mosque, in the direction of the Qibla, and so he scraped it off with his hand, and the sign of disgust (was apparent from his face) and then said, "Whenever anyone of you is in prayer, he should not spit in front of him (in prayer) because Allah is in front of him."
Full reference and source
Sahih al-Bukhari 6111 In-book : Book 78, Hadith 138 USC-MSA web (English) : Vol. 8, Book 73, Hadith 132 (deprecated)
View source on Sunnah.com (opens in a new tab)