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.
Sahih Muslim Book 5, Hadith 62