عَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُ قَالَ: صَلَّى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ فِي الْمَسْجِدِ فَرَأَى فِي الْقِبْلَةِ نُخَامَةً، فَلَمَّا قَضَى صَلَاتَهُ قَالَ: ((إِنَّ أَحَدَكُمْ إِذَا صَلَّى فِي الْمَسْجِدِ فَإِنَّهُ يُنَاجِي رَبَّهُ وَإِنَّ اللَّهَ تَبَارَكَ وَتَعَالَى يَسْتَقْبِلُهُ بِوَجْهِهِ فَلَا يَتَنَخَّمَنَّ أَحَدُكُمْ فِي الْقِبْلَةِ وَلَا عَنْ يَمِينِهِ)) ثُمَّ دَعَا بِعُودٍ فَحَكَّهُ ثُمَّ دَعَا بِخَلُوقٍ فَحَضَبَهُ
Sayyiduna Abdullah bin Umar (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) was praying in the mosque when he saw some phlegm in the direction of the qiblah. When he (peace and blessings be upon him) finished the prayer, he said: When any of you prays in the mosque, he is conversing with his Lord, and Allah, Blessed and Exalted, is before him. Therefore, none of you should spit in the direction of the qiblah or to his right side. Then he (peace and blessings be upon him) called for a piece of wood, scraped it off, and then called for some perfume and applied it there.