Sahih al-Bukhari 6952
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الرَّحِيمِ، حَدَّثَنَا سَعِيدُ بْنُ سُلَيْمَانَ، حَدَّثَنَا هُشَيْمٌ، أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ أَبِي بَكْرِ بْنِ أَنَسٍ، عَنْ أَنَسٍ ـ رضى الله عنه ـ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم انْصُرْ أَخَاكَ ظَالِمًا أَوْ مَظْلُومًا ". فَقَالَ رَجُلٌ يَا رَسُولَ اللَّهِ أَنْصُرُهُ إِذَا كَانَ مَظْلُومًا، أَفَرَأَيْتَ إِذَا كَانَ ظَالِمًا كَيْفَ أَنْصُرُهُ قَالَ " تَحْجُزُهُ أَوْ تَمْنَعُهُ مِنَ الظُّلْمِ، فَإِنَّ ذَلِكَ نَصْرُهُ "."
Narrated Anas:
Allah's Messenger (ﷺ) said, "Help your brother whether he is an oppressor or an oppressed," A man said, "O Allah's Messenger (ﷺ)! I will help him if he is oppressed, but if he is an oppressor, how shall I help him?" The Prophet (ﷺ) said, "By preventing him from oppressing (others), for that is how to help him."
Full reference and source
Sahih al-Bukhari 6952 In-book : Book 89, Hadith 13 USC-MSA web (English) : Vol. 9, Book 85, Hadith 84 (deprecated)
View source on Sunnah.com (opens in a new tab)