The Prophet Muhammad (peace be upon him) said:
“Help your brother, whether he is an oppressor or he is oppressed.” The Prophet was asked: “It is right to help him if he is oppressed, but how should we help him if he is an oppressor?” He replied: “By preventing him from oppressing others.”
{Sahih Bukhari, Volume 3, Hadith 624}