This directive is given to the Muslims in their collective capacity: in order to hold steadfast to this directive of the Qur’ān, they must depute some people from among themselves to enjoin good and forbid evil. It is in this capacity that glad tidings of success are given. It is evident from this that this directive relates to those in authority. Consequently, in an Islamic state, the pulpit of the Friday prayer and the department of police serve this very purpose. Through the Friday sermon, those in authority call them towards righteousness and urge them to refrain from wrongdoings while the police holds people accountable who perpetrate acts which are considered as crimes as per law.
Tafsir Qur'an Wiki:
The task of the Muslim community is to implement the Divine method in human society, and to help truth to triumph over falsehood, goodness over evil. This task is stated in the following verse: “Let there become of you a nation that invites to all that is good, enjoin the doing of what is right and forbid what is wrong. Such are they who shall prosper.”
It is imperative for this community to come into existence so as to invite all to that which is good, and to enjoin what is right and forbid what is wrong. The Qur’ānic statement imparts that this must be done through a real authority which can invite, enjoin and forbid. Anyone may be able to invite to what is good, but no one can enjoin and forbid unless he is equipped with real authority.
This is the proper Islamic view of the matter. It is essential that there should be an authority to undertake the task of advocating what is good and removing what is evil. The units which constitute this authority must combine together, hold fast to their bond with God, and translate their brotherhood into a reality. The prerequisites enabling this authority to implement the Divine method in life are faith and brotherhood. The Divine method cannot be put into practice without “inviting” others to every good so that people realise the true nature of this Divine method. It also requires an active authority to “enjoin” what is right and “forbid” what is wrong. Such an authority must be obeyed. God says: “We have sent every messenger in order to be obeyed with God’s leave.” (Al-Nisā’ 4:64) Hence, God’s method is not merely preaching and verbal explanation. This is only one part of it. The other part is an active and sustained effort to promote every right thing in human life and to reduce to a minimum every wrong. In this way, the traditions of the good Muslim community will be protected against the whims of anyone who has the power to impose his own interests on the community. It also protects these traditions against all abuse or subservience to personal desire or interest.
The task of enjoining what is right and forbidding what is wrong is not an easy one, especially when we consider that it inevitably conflicts with people’s desires, interests and pride. There are in this world of ours tyrants who impose their authority by force, people who are interested only in carnal desires and who do not wish to be elevated to a nobler standard. There are also the lazy who hate to be asked to be serious, the unfair who hate justice, the deviant who do not for a moment contemplate a straightforward attitude, as well as those who think wrong of every right thing and consider every wrong thing to be right. No nation, let alone humanity as a whole, can prosper unless goodness prevails, right is upheld and wrong is thrown out. Hence, the need for an authority to promote goodness and right and to combat evil. What is more, this authority must be obeyed.
This leads us back to the point where we started: a community must be built on the two essential qualities of faith and brotherhood. It is only such a community that can undertake this difficult task, equipped with the power of faith and the seriousness it derives from fearing God as well as the strength of love and brotherhood. It is only through the fulfilment of this role that this community can prosper. Hence, God describes those who fulfil it as prosperous: “Such are they who shall prosper.”
The existence of such a community is essential for the Divine method itself. It is indeed the environment in which it can breathe and become a practical reality. It is a good, healthy environment where people co-operate to promote goodness. In such a community, right is synonymous with goodness, virtue and justice, whereas wrong means evil, vice and injustice. To do good in such a community is easier than to do evil, virtue is simpler than vice, right stronger than wrong, justice more common and beneficial than injustice. A person who wants to do good will find help while the one who wants to do evil will meet resistance. It is this fact that gives this community its greatest value. It provides an environment where goodness and right can prosper without the need for any great effort, because everything in this environment lends them support. Wrong and evil can only grow with difficulty because of the all-round resistance which neglects it.
The concept Islam formulates of life, actions, events, values and people is essentially different from all other concepts. Hence, a special environment, which is totally different from that state of ignorance which prevails in unreligious communities, is needed to enable this unique concept, with all its unique values, to flourish. This environment must be conditioned by the Islamic concept of human life and must serve it so that it may live, breathe freely and grow in it, without encountering any internal hindrances to its development. Should it encounter any obstacles, then the essential qualities of the Muslim community, to advocate all that is good and to enjoin what is right and forbid what is wrong, are certain to remove them. Should an oppressive force attempt to turn people away from God, then it will inevitably encounter those who are prepared to defend and protect the Divine method of life.
This environment is embodied in the Muslim community which is built on the twin pillars of faith and brotherhood. Its faith in God brings conformity to its concept of life, events, actions, values and people and gives it a single standard with which to evaluate everything in life. It conducts all its affairs according to the same Divine law and pledges all its loyalty to the leadership which takes upon itself the task of implementing God’s method in human life. The brotherhood of faith provides this community with bonds of love and mutual care. These ties ensure the absence of selfishness in the community and help its members care for one another without pressure or ill feeling.