The Prophet of Islam informed the Muslims that he had been sent to teach them moral behaviour. One of his teachings was that people should encourage each other to do good, and discourage and prevent one another from doing bad or evil things.
In this respect, Muslims attempt to encourage others to do good works and behave justly and in line with Islamic ethics and law. They also attempt to discourage others from doing evil deeds, usually by talking to them or showing displeasure when someone does something wrong.
In all instances, Muslims have been commanded to be sensitive and careful when dealing with others and at no time are they allowed to use hurtful language or violence.
The aim of making these duties compulsory is to improve the standing of society and foster better interaction and behaviour in Muslim communities. It also places responsibility on every Muslim to care about society and help to better it, rather than leaving it to a few.