Sahih Muslim, Book 5, Hadith 62 (Muslim 1215)

Ibn Umar reported that the Messenger of Allah (ﷺ) saw sputum sticking to the Qibla wall of the mosque, the rest of the hadith is the same.