حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ بْنِ نُمَيْرٍ ، حَدَّثَنَا أَبِي ، حَدَّثَنَا مُحَمَّدُ بْنُ إِسْحَاقَ ، عَنْ عَبْدِ اللهِ بْنِ مُحَمَّدٍ ، عَنْ عَامِرِ بْنِ سَعْدٍ ، عَنْ سَعْدٍ قَالَ : قَالَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - : « إِذَا تَنَخَّمَ أَحَدُكُمْ فِي الْمَسْجِدِ فَلْيَدْفِنْهَا ، لَا يُصِيبُ جِلْدَ مُؤْمِنٍ أَوْ ثَوْبَهُ فَيُؤْذِيَهُ » .
It is narrated from Sayyiduna Sa'd bin Abi Waqqas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you spits out phlegm in the mosque, let him bury it, so that it does not touch the skin or clothing of a believer and cause him harm."
Related hadith on this topic