Sahih al-Bukhari, Book 8, Hadith 59 (Bukhari 403)

Narrated `Aisha:

(the mother of faithful believers) Allah's Messenger (ﷺ) saw some nasal secretions, expectoration or sputum on the wall of the mosque in the direction of the Qibla and scraped it off.