BUKHARI 408:
from Abū Hurayrah And ʾAbā Saʿīd Ḥaddathāh —
Messenger of Allah ﷺ 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 he could spit either on his left or under his left foot."
البخاري ٤٠٨:
عن ابو هريره و ءبا سعيد حدثاه —
أَنَّ رَسُولَ اللَّهِ ﷺ رَأَى نُخَامَةً فِي جِدَارِ الْمَسْجِدِ فَتَنَاوَلَ حَصَاةً فَحَكَّهَا فَقَالَ إِذَا تَنَخَّمَ أَحَدُكُمْ فَلاَ يَتَنَخَّمَنَّ قِبَلَ وَجْهِهِ وَلاَ عَنْ يَمِينِهِ وَلْيَبْصُقْ عَنْ يَسَارِهِ أَوْ تَحْتَ قَدَمِهِ الْيُسْرَى
hadithunlocked.com