The Prophet ﷺ saw some phlegm on the wall of the mosque, so he picked up a pebble and scraped it off. Then he said, "When one of you needs to spit, let him not spit in front of himself or to his right. Let him spit to his left or under his left foot."
حدثنا أبو كامل حدثنا إبراهيم عن ابن شهاب عن حميد بن عبد الرحمن أن
أن النبي ﷺ رأى في جدار المسجد نخامة فتناول حصاة فحتها ثم قال إذا تنخم أحدكم فلا يتنخمن قبل وجهه ولا عن يمينه وليبصق عن يساره أو تحت قدمه اليسرى