عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ جَالِسًا فِي الْمَسْجِدِ وَأَصْحَابُهُ إِذْ جَاءَ أَعْرَابِيٌّ فَبَالَ فِي الْمَسْجِدِ، فَقَالَ أَصْحَابُهُ: مَهْ مَهْ، فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ((لَا تُزْرِمُوهُ دَعُوهُ)) ثُمَّ دَعَاهُ فَقَالَ لَهُ: ((إِنَّ هَٰذِهِ الْمَسَاجِدَ لَا تَصْلُحُ لِشَيْءٍ مِنَ الْقَذَرِ وَالْبَوْلِ وَالْخَلَاءِ أَوْ كَمَا قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ، إِنَّمَا هِيَ لِقِرَاءَةِ الْقُرْآنِ وَذِكْرِ اللَّهِ وَالصَّلَاةِ)) فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ لِرَجُلٍ مِنَ الْقَوْمِ: ((قُمْ فَأْتِنَا بِدَلْوِ مِنْ مَاءٍ فَشُنَّهُ عَلَيْهِ)) فَأَتَاهُ بِدَلْوِ مِنْ مَاءٍ فَشَنَّهُ عَلَيْهِ
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) was sitting in the mosque with his companions when a Bedouin came and began to urinate in the mosque. The companions said, "Stop! Stop!" But the Messenger of Allah (peace and blessings be upon him) said, "Do not interrupt his urination, let him be." Then the Messenger of Allah (peace and blessings be upon him) called him and said, "These mosques are not appropriate for filth, urine, or excrement; they are only for prayer, the remembrance of Allah, and the recitation of the Qur'an." Then the Messenger of Allah (peace and blessings be upon him) told a man, "Get up and bring a bucket of water and pour it over it." So he brought a bucket of water and poured it over it.