Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:479Sulaymān b. Dāwud > Ḥammād > Ayyūb > Nāfiʿ > Ibn ʿUmar

One day while the Messenger of Allah ﷺwas giving sermon he suddenly saw phlegm on the wall towards the qiblah(the direction to which Muslims turn in prayer) of the mosque. So he became angry at people. He then scraped it and sent for saffron and stained with it. He then said: When any one of you prays, Allah, the Exalted, faces him: he, therefore, should not spit before him.  

أبو داود:٤٧٩حَدَّثَنَا سُلَيْمَانُ بْنُ دَاوُدَ حَدَّثَنَا حَمَّادٌ حَدَّثَنَا أَيُّوبُ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ قَالَ

بَيْنَمَا رَسُولُ اللَّهِ ﷺ يَخْطُبُ يَوْمًا إِذْ رَأَى نُخَامَةً فِي قِبْلَةِ الْمَسْجِدِ فَتَغَيَّظَ عَلَى النَّاسِ ثُمَّ حَكَّهَا قَالَ وَأَحْسِبُهُ قَالَ فَدَعَا بِزَعْفَرَانٍ فَلَطَّخَهُ بِهِ وَقَالَ إِنَّ اللَّهَ قِبَلَ وَجْهِ أَحَدِكُمْ إِذَا صَلَّى فَلاَ يَبْزُقْ بَيْنَ يَدَيْهِ  

قَالَ أَبُو دَاوُدَ رَوَاهُ إِسْمَاعِيلُ وَعَبْدُ الْوَارِثِ عَنْ أَيُّوبَ عَنْ نَافِعٍ وَمَالِكٌ وَعُبَيْدُ اللَّهِ وَمُوسَى بْنُ عُقْبَةَ عَنْ نَافِعٍ نَحْوَ حَمَّادٍ إِلاَّ أَنَّهُ لَمْ يَذْكُرُوا الزَّعْفَرَانَ وَرَوَاهُ مَعْمَرٌ عَنْ أَيُّوبَ وَأَثْبَتَ الزَّعْفَرَانَ فِيهِ وَذَكَرَ يَحْيَى بْنُ سُلَيْمٍ عَنْ عُبَيْدِ اللَّهِ عَنْ نَافِعٍ الْخَلُوقَ