'Aishah (May Allah be pleased with her) said:
The Messenger of Allah (ﷺ) saw spittle or snot or sputum, sticking to the wall towards Qiblah and scratched it off.[Al-Bukhari and Muslim]. (ES)
App reference (ES): Book 18, Hadith 184 (ES)
Arabic/English book reference (ES): Book 18, Hadith 1694 (ES)