The Messenger of Allah ﷺ saw some phlegm on the wall facing the qiblah in the masjid, so he scraped it off with a pebble. He then forbade anyone from spitting to his right or in front of him, instructing instead that he spit to his left or under his left foot.
حدثني أبو الطاهر وحرملة قالا حدثنا ابن وهب عن يونس قال ح و حدثني زهير بن حرب حدثنا يعقوب بن إبراهيم حدثنا أبي كلاهما عن ابن شهاب عن حميد بن عبد الرحمن أن أبا هريرة وأبا سعيد أخبراه أن رسول الله ﷺ رأى نخامة بمثل حديث ابن عيينة