Leave him alone. When he had finished, the Messenger of Allah (ﷺ) ordered that a bucket…

Sahih Muslim Book 2 Hadith 126

Sahih Muslim #284b

The Book of Purification 2:126

Anas b. Malik narrated that a desert Arab (Bedouin) stood in a corner of the mosque and urinated there. The people (the Companions of the Prophet who were present there) shouted, but the Messenger of Allah (ﷺ) said:

Leave him alone. When he had finished, the Messenger of Allah (ﷺ) ordered that a bucket (of water) should be brought and poured over it.

Chapter: The obligation to wash away urine and other impurities if they result in the Masjid, and the ground may be purified with water with no need to scrub it

Grade: Sahih