Language:
كتاب الصلاة
8  
Prayers (Salat)
(33)
Chapter: To scrape off the sputum from the mosque with the hand (using some tool or other, or using n tool)
(33)
باب حَكِّ الْبُزَاقِ بِالْيَدِ مِنَ الْمَسْجِدِ
Sahih al-Bukhari 406

Narrated `Abdullah bin `Umar:

Allah's Messenger (ﷺ) saw sputum on the wall of the mosque in the direction of the Qibla and scraped it off. He faced the people and said, "Whenever any one of you is praying, he should not spit in front of him because in the prayer Allah is in front of him."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، قَالَ أَخْبَرَنَا مَالِكٌ، عَنْ نَافِعٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ،‏.‏ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم رَأَى بُصَاقًا فِي جِدَارِ الْقِبْلَةِ فَحَكَّهُ، ثُمَّ أَقْبَلَ عَلَى النَّاسِ فَقَالَ ‏ "‏ إِذَا كَانَ أَحَدُكُمْ يُصَلِّي، فَلاَ يَبْصُقْ قِبَلَ وَجْهِهِ، فَإِنَّ اللَّهَ قِبَلَ وَجْهِهِ إِذَا صَلَّى ‏"‏‏.‏
Reference : Sahih al-Bukhari 406
In-book reference : Book 8, Hadith 58
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 400
  (deprecated numbering scheme)