Sahih al-Bukhari, Hadith 410 ⓘ
Narrated Abu Huraira and Abu Sa`id: Allah's Messenger saw some expectoration on the wall of the mosque; he took gravel and scraped it off and said, "If anyone of you wanted to spit, he should neither spit in front of him nor on his right but could spit either on his left or under his left foot."
حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، قَالَ حَدَّثَنَا اللَّيْثُ، عَنْ عُقَيْلٍ، عَنِ ابْنِ شِهَابٍ، عَنْ حُمَيْدِ بْنِ عَبْدِ الرَّحْمَنِ، أَنَّ أَبَا هُرَيْرَةَ، وَأَبَا، سَعِيدٍ أَخْبَرَاهُ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم رَأَى نُخَامَةً فِي حَائِطِ الْمَسْجِدِ، فَتَنَاوَلَ رَسُولُ اللَّهِ صلى الله عليه وسلم حَصَاةً فَحَتَّهَا ثُمَّ قَالَ " إِذَا تَنَخَّمَ أَحَدُكُمْ فَلاَ يَتَنَخَّمْ قِبَلَ وَجْهِهِ وَلاَ عَنْ يَمِينِهِ، وَلْيَبْصُقْ عَنْ يَسَارِهِ، أَوْ تَحْتَ قَدَمِهِ الْيُسْرَى " .
also referenced under: Book 8, Hadith 61 (In-Book) & Volume 1, Book 8, Hadith 403 (USC-MSA)