Sunan an-Nasa'i, Book 2, Hadith 5 (Nasa'i 330)

It was narrated from Anas that a Bedouin urinated in the Masjid, and some of the people went after him, but the Messenger of Allah (ﷺ) said:

"Do not restrain him." When he had finished he called from a bucket (of water) and poured over it.