Also, in a hadith related by al-Bayhaqiyy, the Prophet said:

The meaning of this hadith is: <<Until when will you withhold mentioning the person who commits enormous sins? Mention what is in him so the people would be warned against him.>> Thus, we are encouraged to go out and warn the people against those who cheat and do ill things to the Muslims--so that Muslims may heed the warning.