From Sahih Bukhari (Hadith 407):
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
Reference: Bukhari 407