Muwatta Malik, Book 2, Hadith 142 (In-Book)

Yahya related to me from Malik that Yahya ibn Said said, "A Bedouin came into the mosque and uncovered his private parts to urinate. The people called out to him and began to raise their voices but the Messenger of Allah, may Allah bless him and grant him peace, said,'Let him be. 'So they let him be and he urinated. Then the Messenger of Allah, may Allah bless him and grant him peace, ordered a bucketful of water to be brought and it was poured on the place."

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

sunnah.com

also referenced under: Book 2, Hadith 113 (USC-MSA)