وَعَنْ أَنَسٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: بَيْنَمَا نَحْنُ فِي الْمَسْجِدِ مَعَ رَسُولِ اللَّهِ ﷺ إِذْ جَاءَ أَعْرَابِيٌّ، فَقَامَ يَبُولُ فِي الْمَسْجِدِ، فَقَالَ أَصْحَابُ رَسُولِ اللَّهِ ﷺ: مَهْ مَهْ. فَقَالَ رَسُولُ اللَّهِ ﷺ: «لَا تُزْرِمُوهُ، دَعُوهُ».
Translation: Anas relates that while they were in the mosque, a Bedouin began urinating there. The Companions called out to stop him, but the Messenger of Allah ﷺ told them not to interrupt him abruptly.
The act was wrong. The teaching lies in correcting the mistake without a harsh intervention that could increase harm.