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.