Anas bin Malik (may Allah be pleased with him) narrates: A Bedouin urinated in the mosque. The people rushed towards him, but the Prophet (ﷺ) stopped the people and said: "Pour a bucket of water over the urine."
Hadith Referenceمسند الإمام الشافعي / كتاب الطهارة / 21
Hadith Takhrijأخرجه البخاري: الوضوء، باب صب الماء على البول في المسجد (221)، ومسلم: الطهارة، باب وجوب غسل البول وغيره من النجاسات إذا حصلت في المسجد (284).