Sunan an-Nasa'i, Book 8, Hadith 41 (Nasa'i 730)

It was narrated that Anas bin Malik said:

"The Messenger of Allah (ﷺ) saw some sputum in the Qiblah of the Masjid, and he became so angry that his face turned red. Then a woman from the Ansar went and scratched off, and put some perfume in its place. The Messenger of Allah (ﷺ) said: 'How good this is.'"