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.
عَنِ النَّبِيِّ ﷺ أَنَّهُ رَأَى نُخَامَةً فِي قِبْلَةِ الْمَسْجِدِ إِلاَّ الضَّحَّاكَ فَإِنَّ فِي حَدِيثِهِ نُخَامَةً فِي الْقِبْلَةِ بِمَعْنَى حَدِيثِ مَالِكٍ