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.
bayhaqi:4142Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > ʿAbdullāh b. Muḥammad al-Kaʿbī > Muḥammad b. Ayyūb > Maḥmūd b. Ghaylān > ʿUmar b. Yūnus > ʿIkrimah > Isḥāq b. ʿAbdullāh b. Abū Ṭalḥah > Anas b. Mālik

While we were in the mosque with Messenger of Allah ﷺ, a desert Arab came and stood up and began to urinate in the mosque. The Companions of Messenger of Allah ﷺ said: Stop, stop, but the Messenger of Allah ﷺ said: Don't interrupt him; leave him alone. They left him alone, and when he finished urinating, Messenger of Allah ﷺ called him and said to him: These mosques are not the places meant for urine and filth, but are only for the remembrance of Allah, prayer and the recitation of the Qur'an, or Messenger of Allah said something like that. He (the narrator) said that he (the Holy Prophet) then gave orders to one of the people who brought a bucket of water and poured It over. (Using translation from Muslim 285)   

البيهقي:٤١٤٢أنبأ مُحَمَّدُ بْنُ عَبْدِ اللَّهِ الْحَافِظُ أَخْبَرَنِي عَبْدُ اللهِ بْنُ مُحَمَّدٍ الْكَعْبِيُّ ثنا مُحَمَّدُ بْنُ أَيُّوبَ أنبأ مَحْمُودُ بْنُ غَيْلَانَ ثنا عُمَرُ بْنُ يُونُسَ ثنا عِكْرِمَةُ ثنا إِسْحَاقُ بْنُ عَبْدِ اللهِ بْنِ أَبِي طَلْحَةَ قَالَ حَدَّثَنِي أَنَسُ بْنُ مَالِكٍ قَالَ

بَيْنَمَا نَحْنُ فِي الْمَسْجِدِ مَعَ نَبِيِّ اللهِ ﷺ إِذَا جَاءَ أَعْرَابِيٌّ فَقَامَ يَبُولُ فِي الْمَسْجِدِ فَقَالَ أَصْحَابُ رَسُولِ اللهِ ﷺ مَهْ مَهْ فَقَالَ دَعُوهُ فَتَرَكُوهُ حَتَّى بَالَ ثُمَّ إِنَّ رَسُولَ اللهِ ﷺ دَعَاهُ فَقَالَ له إِنَّ هَذِهِ الْمَسَاجِدَ لَا تَصْلُحُ لِشَيْءٍ مِنْ هَذَا الْبَوْلِ وَلَا الْقَذَرِ إِنَّمَا هِيَ لِذِكْرِ اللهِ تَعَالَى وَالصَّلَاةِ وَقِرَاءَةِ الْقُرْآنِ أَوْ كَمَا قَالَ رَسُولُ اللهِ ﷺ فَأَمَرَ رَجُلًا مِنَ الْقَوْمِ فَجَاءَ بِدَلْوٍ مِنَ مَاءٍ فَرَشَّهُ عَلَيْهِ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ زُهَيْرِ بْنِ حَرْبٍ عَنْ عُمَرَ بْنِ يُونُسَ

See similar narrations below:

Collected by Muslim, Aḥmad

The kind treatment of the Prophet ﷺ to a man who urinated in Masjid al-Nabawi

muslim:285Zuhayr b. Ḥarb

While we were in the mosque with Messenger of Allah ﷺ, a desert Arab came and stood up and began to urinate in the mosque. The Companions of Messenger of Allah ﷺ said: Stop, stop, but the Messenger of Allah ﷺ said: Don't interrupt him; leave him alone. They left him alone, and when he finished urinating, Messenger of Allah ﷺ called him and said to him: These mosques are not the places meant for urine and filth, but are only for the remembrance of Allah, prayer and the recitation of the Qur'an, or Messenger of Allah said something like that. He (the narrator) said that he (the Holy Prophet) then gave orders to one of the people who brought a bucket of water and poured It over.  

مسلم:٢٨٥حَدَّثَنَا زُهَيْرُ بْنُ حَرْبٍ حَدَّثَنَا عُمَرُ بْنُ يُونُسَ الْحَنَفِيُّ حَدَّثَنَا عِكْرِمَةُ بْنُ عَمَّارٍ حَدَّثَنَا إِسْحَاقُ بْنُ أَبِي طَلْحَةَ حَدَّثَنِي أَنَسُ بْنُ مَالِكٍ وَهُوَ عَمُّ إِسْحَاقَ قَالَ

بَيْنَمَا نَحْنُ فِي الْمَسْجِدِ مَعَ رَسُولِ اللَّهِ ﷺ إِذْ جَاءَ أَعْرَابِيٌّ فَقَامَ يَبُولُ فِي الْمَسْجِدِ فَقَالَ أَصْحَابُ رَسُولِ اللَّهِ ﷺ مَهْ مَهْ قَالَ قَالَ رَسُولُ اللَّهِ ﷺ لاَ تُزْرِمُوهُ دَعُوهُ فَتَرَكُوهُ حَتَّى بَالَ ثُمَّ إِنَّ رَسُولَ اللَّهِ ﷺ دَعَاهُ فَقَالَ لَهُ إِنَّ هَذِهِ الْمَسَاجِدَ لاَ تَصْلُحُ لِشَىْءٍ مِنْ هَذَا الْبَوْلِ وَلاَ الْقَذَرِ إِنَّمَا هِيَ لِذِكْرِ اللَّهِ ﷻ وَالصَّلاَةِ وَقِرَاءَةِ الْقُرْآنِ أَوْ كَمَا قَالَ رَسُولُ اللَّهِ ﷺ قَالَ فَأَمَرَ رَجُلاً مِنَ الْقَوْمِ فَجَاءَ بِدَلْوٍ مِنْ مَاءٍ فَشَنَّهُ عَلَيْهِ  

ahmad:12984Bahz > ʿIkrimah b. ʿAmmār > Isḥāq b. ʿAbdullāh b. Abū Ṭalḥah al-Anṣārī from his uncle Anas b. Mālik

[Machine] The Messenger of Allah ﷺ was sitting in the mosque with his companions when a Bedouin came in and urinated in the mosque. The companions said, "Stop him, stop him!" But the Messenger of Allah ﷺ said, "Leave him alone," and he called the man. He said to him, "These mosques are not suitable for anything impure, such as urine and filth. They are only for the recitation of the Quran, remembering Allah, and prayer." Then the Messenger of Allah ﷺ ordered a man from the people to bring a bucket of water and pour it over the area that was urinated on. The man brought a bucket of water and poured it over it.  

أحمد:١٢٩٨٤حَدَّثَنَا بَهْزٌ حَدَّثَنَا عِكْرِمَةُ بْنُ عَمَّارٍ حَدَّثَنَا إِسْحَاقُ بْنُ عَبْدِ اللهِ بْنِ أَبِي طَلْحَةَ الْأَنْصَارِيُّ عَنْ عَمِّهِ أَنَسِ بْنِ مَالِكٍ قَالَ

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