صحيح البخاري Sahih Bukhari كتاب الصلاة The Book of As-Salat (The Prayer)
بَابُ حَكِّ الْبُزَاقِ بِالْيَدِ مِنَ الْمَسْجِدِ:

(33) Chapter. To scrape off the sputum from the mosque with the hand (using some tool or other, or using no tool).

3 hadith
Hadith 405
حَدَّثَنَا قُتَيْبَةُ ، قَالَ : حَدَّثَنَا إِسْمَاعِيلُ بْنُ جَعْفَرٍ ، عَنْ حُمَيْدٍ ، عَنْ أَنَسٍ ، أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَأَى نُخَامَةً فِي الْقِبْلَةِ ، فَشَقَّ ذَلِكَ عَلَيْهِ حَتَّى رُئِيَ فِي وَجْهِهِ ، فَقَامَ فَحَكَّهُ بِيَدِهِ ، فَقَالَ : " إِنَّ أَحَدَكُمْ إِذَا قَامَ فِي صَلَاتِهِ فَإِنَّهُ يُنَاجِي رَبَّهُ أَوْ إِنَّ رَبَّهُ بَيْنَهُ وَبَيْنَ الْقِبْلَةِ ، فَلَا يَبْزُقَنَّ أَحَدُكُمْ قِبَلَ قِبْلَتِهِ ، وَلَكِنْ عَنْ يَسَارِهِ أَوْ تَحْتَ قَدَمَيْهِ ، ثُمَّ أَخَذَ طَرَفَ رِدَائِهِ فَبَصَقَ فِيهِ ، ثُمَّ رَدَّ بَعْضَهُ عَلَى بَعْضٍ ، فَقَالَ : أَوْ يَفْعَلُ هَكَذَا " .
Narrated Anas bin Malik: The Prophet saw some sputum in the direction of the Qibla (on the wall of the mosque) and he disliked that and the sign of disgust was apparent from his face. So he got up and scraped it off with his hand and said, "Whenever anyone of you stands for the prayer, he is speaking in private to his Lord or his Lord is between him and his Qibla. So, none of you should spit in the direction of the Qibla but one can spit to the left or under his foot." The Prophet then took the corner of his sheet and spat in it and folded it and said, "Or you can do this. "
Hadith Reference Sahih Bukhari / The Book of As-Salat (The Prayer) / Hadith: 405
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 406
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ ، قَالَ : أَخْبَرَنَا مَالِكٌ ، عَنْ نَافِعٍ ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ، أَنّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَأَى بُصَاقًا فِي جِدَارِ الْقِبْلَةِ فَحَكَّهُ ، ثُمَّ أَقْبَلَ عَلَى النَّاسِ ، فَقَالَ : " إِذَا كَانَ أَحَدُكُمْ يُصَلِّي فَلَا يَبْصُقُ قِبَلَ وَجْهِهِ ، فَإِنَّ اللَّهَ قِبَلَ وَجْهِهِ إِذَا صَلَّى " .
Narrated `Abdullah bin `Umar: Allah's Apostle 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."
Hadith Reference Sahih Bukhari / The Book of As-Salat (The Prayer) / Hadith: 406
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 407
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ ، قَالَ : أَخْبَرَنَا مَالِكٌ ، عَنْ هِشَامِ بْنِ عُرْوَةَ ، عَنْ أَبِيهِ ، عَنْ عَائِشَةَ أُمِّ الْمُؤْمِنِينَ ، " أَنّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَأَى فِي جِدَارِ الْقِبْلَةِ مُخَاطًا أَوْ بُصَاقًا أَوْ نُخَامَةً فَحَكَّهُ " .
Narrated `Aisha: (the mother of faithful believers) Allah's Apostle saw some nasal secretions, expectoration or sputum on the wall of the mosque in the direction of the Qibla and scraped it off.
Hadith Reference Sahih Bukhari / The Book of As-Salat (The Prayer) / Hadith: 407
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة