Sunan Ibn Majah, Book 4, Hadith 30 (Ibn Majah 764)

It was narrated from 'Aishah that:

The Prophet scratched some spittle from the prayer direction of the mosque.