Sunan Ibn Majah 529: Ritual Purity
Hazrat Abu Hurairah (ra) related that a Bedouin entered the mosque while the Messenger of Allah (saw) was sitting there. He prayed: O Allah, forgive me and Muhammad (saw), and do not forgive anyone else along with us. The Messenger of Allah (saw) laughed and said: “You have restricted what is vast (the mercy of Allah).” Then he turned and went to a corner of the mosque and, spreading his legs, began to urinate. Later, when this Bedouin had gained understanding, he said: May my mother and father be sacrificed for you. He (saw) got up and came to me; he neither scolded nor reviled me, but said: “This is a mosque; one does not urinate in it. It is built only for the remembrance of Allah and for the Prayer.” Then he (saw) ordered a bucket of water to be brought, and it was poured over his urine.
AI-translated by Islam-Today