حَدَّثَنَا الْقَعْنَبِيُّ، حَدَّثَنَا أَبُو مَوْدُودٍ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي حَدْرَدٍ الأَسْلَمِيِّ، سَمِعْتُ أَبَا هُرَيْرَةَ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ مَنْ دَخَلَ هَذَا الْمَسْجِدَ فَبَزَقَ فِيهِ أَوْ تَنَخَّمَ فَلْيَحْفِرْ فَلْيَدْفِنْهُ فَإِنْ لَمْ يَفْعَلْ فَلْيَبْزُقْ فِي ثَوْبِهِ ثُمَّ لْيَخْرُجْ بِهِ ‏"‏ ‏.‏

Abu Hurairah reported: The Messenger of Allah(PBUH) said: if anyone enters the mosque, and spits in it, or ejects phlegm, he should remove some earth and bury it there. If he does not do so, then he should spit in his clothes and not come out with it. Translation Not Available

Book Ref: Sunan Abi Dawud Book 2 Hadith 477
Web Ref:  Sunan Abi Dawud Book 2 Hadith 477