English translation
529. It was narrated that Abu Hurairah said: “A Bedouin entered the mosque when the Messenger of Allāh ﷺ was sitting there, and (the man) said: 'O Allāh, forgive me and Muhammad, and do not forgive anyone else with us.' The Messenger of Allāh ﷺ smiled and said: 'You have placed restrictions on something that is vast.' Then the Bedouin turned away, went to a corner of the mosque, spread his legs and began to urinate. After he had a better understanding, the Bedouin said: 'He got up and came to me, and may my father and mother be ransomed for him, he did not rebuke me nor revile me. He said: "This mosque is not for urinating in. Rather it is built for the remembrance of Allāh and prayer.'" Then he called for a large vessel of water and poured it over the place where he had urinated.' (Hasan)
Arabic text
529 - حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ قَالَ: حَدَّثَنَا عَلِيُّ بْنُ مُسْهِرٍ، عَنْ مُحَمَّدِ بْنِ عَمْرٍو، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ، قَالَ: دَخَلَ أَعْرَابِيٌّ الْمَسْجِدَ، وَرَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ جَالِسٌ، فَقَالَ: اللَّهُمَّ اغْفِرْ لِي وَلِمُحَمَّدٍ وَلَا تَغْفِرْ لِأَحَدٍ مَعَنَا، فَضَحِكَ رَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ وَقَالَ: «لَقَدْ احْتَظَرْتَ وَاسِعًا» ثُمَّ وَلَّى، حَتَّى إِذَا كَانَ فِي نَاحِيَةِ الْمَسْجِدِ، فَشَجَ يَبُولُ، فَقَالَ: الْأَعْرَابِيُّ بَعْدَ أَنْ فَقِهَ، فَقَامَ إِلَيَّ بِأَبِي وَأُمِّي، فَلَمْ يُؤَنِّبْ، وَلَمْ يَسُبَّ، فَقَالَ: «إِنَّ هَذَا الْمَسْجِدَ لَا يُبَالُ فِيهِ، وَإِنَّمَا بُنِيَ لِذِكْرِ اللَّهِ وَلِلصَّلَاةِ، ثُمَّ أَمَرَ بِسَجْلٍ مِنْ مَاءٍ، فَأُفْرِغَ عَلَى بَوْلِهِ»