Principles of enjoining good and forbidding evil

In the name of Allah, the Gracious, the Merciful

Enjoining good and forbidding evil is one of the essential teachings of Islam. It is the pillar of a justly-ordered society and the guardian of true faith. Everyone is obligated to acknowledge good and reject evil in their hearts, at the very least.

Abu Sa’id al-Khudri reported: The Messenger of Allah, peace and blessings be upon him, said:

مَنْ رَأَى مِنْكُمْ مُنْكَرًا فَلْيُغَيِّرْهُ بِيَدِهِ فَإِنْ لَمْ يَسْتَطِعْ فَبِلِسَانِهِ فَإِنْ لَمْ يَسْتَطِعْ فَبِقَلْبِهِ وَذَلِكَ أَضْعَفُ الْإِيمَانِ

Whoever among you sees evil, let him change it with his hand. If he is unable to do so, then with his tongue. If he is unable to do so, then with his heart, and that is the weakest level of faith.

Source: Ṣaḥīḥ Muslim 49, Grade: Sahih

The lowest level of faith is to reject evil in one’s heart and it is an obligation at all times. As for changing evil with one’s tongue, or words, and with one’s hand, or by direct action, it is only an obligation for those who are able to carry out its duties according to proper methods, principles, and objectives.

Ibn Rajab commented on the many hadith of this nature, writing:

فَدَلَّتْ هَذِهِ الْأَحَادِيثُ كُلُّهَا عَلَى وُجُوبِ إِنْكَارِ الْمُنْكَرِ بِحَسَبِ الْقُدْرَةِ عَلَيْهِ وَأَمَّا إِنْكَارُهُ بِالْقَلْبِ لَا بُدَّ مِنْهُ فَمَنْ لَمْ يُنْكِرْ قَلْبُهُ الْمُنْكَرَ دَلَّ عَلَى ذَهَابِ الْإِيمَانِ مِنْ قَلْبِهِ … وَأَمَّا الْإِنْكَارُ بِاللِّسَانِ وَالْيَدِ فَإِنَّمَا يَجِبُ بِحَسَبِ الطَّاقَةِ

All of these traditions indicate that it is an obligation to condemn evil by the measure of one’s ability. As for condemnation in the heart, it is always required. Whoever does not condemn evil in his heart, it is a sign that faith has vanished from his heart… As for condemnation of the tongue and hand, it is only obligatory within one’s capacity.

Source: Jāmi’ al-‘Ulūm wal-Ḥikam 2/245

The scholars have said that enjoining good and forbidding evil is based upon three principles, or prerequisite and necessary conditions:

  1. Knowledge
  2. Gentleness
  3. Patience

It is not appropriate for someone to enjoin good or forbid evil unless they have knowledge of Islamic rulings and their relevancy to real-life situations, they are able to be patient and forbearing with the harm this duty entails, and they are gentle with people as much as possible.

Sufyan al-Thawri, may Allah have mercy on him, said:

لا يَأْمُرُ بِالْمَعْرُوفِ وَلا يَنْهَى عَنِ الْمُنْكَرِ إِلا مَنْ كَانَ فِيهِ خِصَالٌ ثَلاثٌ رَفِيقٌ بِمَا يَأْمُرُ رَفِيقٌ بِمَا يَنْهَى عَدْلٌ بِمَا يَأْمُرُ عَدْلٌ بِمَا يَنْهَى عَالِمٌ بِمَا يَأْمُرُ عَالِمٌ بِمَا يَنْهَى

No one may enjoin good or forbid evil except for one who has three qualities: gentleness in what he enjoins and forbids, justice in what he enjoins and forbids, and knowledge of what he enjoins and forbids.

Source: al-Amr bil-Maʻrūf lil-Khallāl 1/24

And Al-Qadi Abu Ya’la said:

لَا يَأْمُرُ بِالْمَعْرُوفِ وَيَنْهَى عَنْ الْمُنْكَرِ إلَّا مَنْ كَانَ فَقِيهًا فِيمَا يَأْمُرُ بِهِ فَقِيهًا فِيمَا يَنْهَى عَنْهُ رَفِيقًا فِيمَا يَأْمُرُ بِهِ رَفِيقًا فِيمَا يَنْهَى عَنْهُ حَلِيمًا فِيمَا يَأْمُرُ بِهِ حَلِيمًا فِيمَا يَنْهَى عَنْهُ

No one may enjoin good and forbid evil unless he understands what he enjoins and forbids, he is gentle in what he enjoins and forbids, and he shows forbearance in what he enjoins and forbids.

Source: al-Amr bil Ma’rūf li-Ibn Taymīyyah 1/21

And Ibn Taymiyyah writes:

فلا بد من هذه الثلاثة العلم والرفق والصبر العلم قبل الأمر والنهي والرفق معه والصبر بعده

One who enjoins good must have three qualities: knowledge, gentleness, and patience. Knowledge comes before it, gentleness comes during it, and patience comes after it.

Source: al-Amr bil Ma’rūf li-Ibn Taymīyyah 1/20

The scholars set these three conditions because, in addition to being mentioned many times in the Quran and Sunnah, they further facilitate the ultimate objective in Islam of reforming and purifying souls on their journey to Allah into the Hereafter. If someone tries to enjoin good while lacking one of these qualities, they will likely end up making the situation worse for themselves and others.

Ibn Taymiyyah writes:

ولهذا قيل ليكن أمرك بالمعروف ونهيك عن المنكر غير منكر وإذا كان هو من أعظم الواجبات والمستحبات فالواجبات والمستحبات لا بد أن تكون المصلحة فيها راجحة على المفسدة

Based on this, it is said to let not your enjoining good and forbidding evil be evil itself. As it is among the greatest of obligatory and recommended deeds, thus the benefit of obligatory and recommended deeds must outweigh their harm.

Source: al-Amr bil Ma’rūf li-Ibn Taymīyyah 1/10

Being able to balance all considerations of time and place in sound knowledge, graceful patience, and compassionate gentleness is the essence of wisdom, as put by Ibn al-Qayyim:

الْحِكْمَةُ إِذًا فِعْلُ مَا يَنْبَغِي عَلَى الْوَجْهِ الَّذِي يَنْبَغِي فِي الْوَقْتِ الَّذِي يَنْبَغِي

Wisdom is to act as one should, in the manner that one should, in the time that one should.

Source: Madārij al-Sālikīn 3/449

One who enjoins good should have a sound understanding of Islamic teachings on the issues at hand, in addition to the specific circumstances regarding people, their customs, their perceptions, and so on. Enjoining good is an act of worship done for the sake of Allah, so the good of it will be diminished or entirely nullified if it is done in ignorance.

Umar ibn Abdul Aziz, may Allah have mercy on him, said:

مَنْ تَعَبَّدَ بِغَيْرِ عِلْمٍ كَانَ مَا يُفْسِدُ أَكْثَرَ مِمَّا يُصْلِحُ

Whoever worships without knowledge will cause more harm than good.

Source: Sunan al-Dārimī 308

One who enjoins good should be gentle to those whom he enjoins, meaning to only use such sternness or force as is necessary to achieve the desired outcome of reformation. The quality of gentleness makes the difference between a beautiful and graceful deed done for the sake of Allah, or an ugly and disgraceful deed done for the sake of one’s ego.

Aisha reported: The Prophet, peace and blessings be upon him, said:

إِنَّ الرِّفْقَ لَا يَكُونُ فِي شَيْءٍ إِلَّا زَانَهُ وَلَا يُنْزَعُ مِنْ شَيْءٍ إِلَّا شَانَهُ

Verily, kindness is not found in anything but that it beautifies it, and it is not removed from anything but that it disgraces it.

Source: Ṣaḥīḥ Muslim 2594, Grade: Sahih

The Prophet (ṣ) was very gentle and charitable whenever he needed to criticize or correct someone’s behavior. His habit was to make a general point of correction, without specifying or naming the person, in hopes of salvaging that person’s reputation. The reputations of the believers, like their lives and property, are sacred.

Aisha reported: If the Prophet, peace and blessings be upon him, heard something bad about a man, he would not name them by saying, “What is the matter with this person that he says this?” Rather, the Prophet (ṣ) would say:

مَا بَالُ أَقْوَامٍ يَقُولُونَ كَذَا وَكَذَا

What is the matter with some people who say this?

Source: Sunan Abī Dāwūd 4788, Grade: Sahih

When further criticism was warranted to achieve the intended result, the Prophet (ṣ) would use mild and measured language to correct a person’s behavior. He would neither outright condemn Muslims or believers for their moral shortcomings, nor would he use foul, vulgar, offensive, or ugly language.

Anas ibn Malik reported: The Prophet, peace and blessings be upon him, would not revile others, he would not use profanity, and he would not curse others. If he wanted to criticize one of us, he would say:

مَا لَهُ تَرِبَ جَبِينُهُ

What is the matter with him? His forehead be dusted!

Source: Ṣaḥīḥ al-Bukhārī 5684, Grade: Sahih

The companions likewise followed the Prophet’s (ṣ) example in correcting people as gently as they could, only being harsh with those who committed brazen sins and violations of other’s rights in public.

Ahmad ibn Hanbal reported:

كَانَ أَصْحَابُ ابْنُ مَسْعُودٍ رضي الله عنه إِذَا مَرُّوا بِقَوْمٍ يَرَوْنَ مِنْهُمْ مَا يَكْرَهُونَ يَقُولُونَ مَهْلا رَحِمَكُمُ اللَّهُ

The companions of Ibn Mas’ud, may Allah be pleased with him, if they passed by people from whom they saw something they disapproved, they would say: Take it easy, may Allah have mercy on you.

Source: al-Amr bil-Maʻrūf lil-Khallāl 1/25

And Imam Ahmad said:

يَأْمُرُ بِالرِّفْقِ وَالْخُضُوعِ إِنْ أَسْمَعُوهُ مَا يَكْرَهُ لَا يَغْضَبُ فَيَكُونُ يُرِيدُ يَنْتَصِرُ لِنَفْسِهِ

One should enjoin good with gentleness and humility. If they make him hear what he dislikes, he should not get angry such that he wants to avenge himself.

Source: al-Amr bil-Maʻrūf lil-Khallāl 1/28

And he also said:

النَّاسُ مُحْتَاجُونَ إِلَى مُدَارَاةٍ وَرِفْقِ الْأَمْرِ بِالْمَعْرُوفِ بِلَا غِلْظَةٍ إِلَّا رَجُلًا مُعْلِنًا بِالْفِسْقِ فَلَا حُرْمَةَ لَهُ … يَأْمُرُ بِالرِّفْقِ وَالْخُضُوعِ فَإِنْ أَسْمَعُوهُ مَا يَكْرَهُ لَا يَغْضَبُ فَيَكُونُ يُرِيدُ يَنْتَصِرُ لِنَفْسِهِ

People are in need of courtesy and gentleness in enjoining good, without harshness, except for a man who brazenly sins in public, for he has no sanctity.

Source: Jāmi’ al-‘Ulūm wal-Ḥikam 2/256

As for patience and forbearance, it was the quality of the Prophets, peace and blessings be upon them all, to endure the harms of their people to whom they delivered the message of Allah.

Allah said:

إِنَّ إِبْرَاهِيمَ لَحَلِيمٌ أَوَّاهٌ مُّنِيبٌ

Verily, Abraham was forbearing, compassionate, and repentant.

Surat Hud 11:75

And Allah said:

وَلَنَصْبِرَنَّ عَلَىٰ مَا آذَيْتُمُونَا وَعَلَى اللَّهِ فَلْيَتَوَكَّلِ الْمُتَوَكِّلُونَ

They said: We will surely be patient with the harm you cause us, and let them rely upon Allah those who would rely.

Surat Ibrahim 14:12

One who enjoins good must be gentle to avoid provoking the harmful reactions of those whom he enjoins, but it is to be expected that such harm is inevitable in some cases. This means that the believer should advise others and neither reciprocate their harm and insults, nor retaliate against them for the sake of his or her own ego.

Amr ibn al-‘As, may Allah be pleased with him, said:

لَيْسَ الْحَلِيمُ مَنْ يَحْلُمُ عَمَّنْ يَحْلُمُ عَنْهُ وَيُجَاهِلُ مَنْ جَاهَلَهُ وَلَكِنَّ الْحَلِيمَ مَنْ يَحْلُمُ عَمَّنْ يَحْلُمُ عَنْهُ وَيَحْلُمُ عَمَّنْ جَاهَلَهُ

The truly forbearing one is not one who is forbearing to those who tolerate him but insults whoever insults him. Rather, the truly forbearing one is forbearing to both those who tolerate him and to those who insult him.

Source: al-Mudārāh al-Nās 6

Artah ibn al-Mundhir, may Allah have mercy on him, said:

الْمُؤْمِنُ لَا يَنْتَصِرُ لِنَفْسِهِ يَمْنَعُهُ مِنْ ذَلِكَ الْقُرْآنُ وَالسُّنَّةُ فَهُوَ مُلْجَمٌ

The believer does not take vengeance for himself. He is prevented from doing so by the Quran and Sunnah. He has been restrained.

Source: al-Amr bil-Maʻrūf lil-Khallāl 1/29

Enjoining good should always been done with a sincere intention for the sake of Allah, not as a pretext to vent personal grudges or any other egotistically driven motive. Sometimes one who enjoins good is motivated by hope of reward or fear of punishment, but an even better motive is good will and mercy towards the believers and the pure love of Allah and love for the sake of Allah.

Ibn Rajab writes:

وَاعْلَمْ أَنَّ الْأَمْرَ بِالْمَعْرُوفِ وَالنَّهْيَ عَنِ الْمُنْكَرِ تَارَةً يَحْمِلُ عَلَيْهِ رَجَاءُ ثَوَابِهِ وَتَارَةً خَوْفُ الْعِقَابِ فِي تَرْكِهِ وَتَارَةً الْغَضَبُ لِلَّهِ عَلَى انْتِهَاكِ مَحَارِمِهِ وَتَارَةً النَّصِيحَةُ لِلْمُؤْمِنِينَ وَالرَّحْمَةُ لَهُمْ وَرَجَاءُ إِنْقَاذِهِمْ مِمَّا أَوْقَعُوا أَنْفُسَهُمْ فِيهِ مِنَ التَّعَرُّضِ لِغَضَبِ اللَّهِ وَعُقُوبَتِهِ فِي الدُّنْيَا وَالْآخِرَةِ وَتَارَةً يَحْمِلُ عَلَيْهِ إِجْلَالُ اللَّهِ وَإِعْظَامُهُ وَمَحَبَّتُهُ … وَمَنْ لَحَظَ هَذَا الْمَقَامَ وَالَّذِي قَبْلَهُ هَانَ عَلَيْهِ كُلُّ مَا يَلْقَى مِنَ الْأَذَى فِي اللَّهِ تَعَالَى وَرُبَّمَا دَعَا لِمَنْ آذَاهُ

Know that enjoining good and forbidding evil is at times done out of motivation to seek reward from Allah, at times done for the fear of His punishment for leaving it, at times done for anger for the sake of Allah in violating His sacred limits, at times done with good will for the believers, mercy for them, and hope in their salvation from what might afflict them of the wrath of Allah and His punishment in the world and in the Hereafter, and at times it is done out of motivation to glorify Allah, to honor Him, and to love Him… Whoever considers these last two positions, it will be easy for him every time he endures harm for the sake of Allah Almighty, and perhaps he will even supplicate for the benefit of those who harm him.

Source: Jāmi’ al-‘Ulūm wal-Ḥikam 2/255

Islam is based upon sincere good will (nasihah) towards the believers and human beings in general, which is to desire and intend good for them. Enjoining good always involves giving advice and therefore must be based on this type of sincerity. Believers should love for others what they love for themselves.

Jarir ibn Abdullah reported:

بَايَعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَلَى إِقَامِ الصَّلَاةِ وَإِيتَاءِ الزَّكَاةِ وَالنُّصْحِ لِكُلِّ مُسْلِمٍ

I pledged allegiance to the Messenger of Allah, peace and blessings be upon him, to establish prayer, to give charity, and to be sincere to every Muslim.

Source: Ṣaḥīḥ al-Bukhārī 57, Grade: Muttafaqun Alayhi

Ali ibn Abi Talib, may Allah be pleased with him, said:

إِنَّ الْمُؤْمِنِينَ قَوْمٌ نَصَحَةُ بَعْضِهِمْ لِبَعْضٍ مُتَوَادُّونَ وَإِنْ بَعَدَتْ دِيَارُهُمْ وَأَبْدَانُهُمْ وَإِنَّ الْمُنَافِقِينَ قَوْمٌ غَشَشَةُ بَعْضِهِمْ لِبَعْضٍ

Verily, the believers are people with good will and love for each other, even if their lands and countries are far apart. The hypocrites are people with malevolence for each other.

Source: Tārīkh Dimashq 23310

Even when it comes to non-Muslims and unbelievers, Muslims should be merciful to them and present Islam to them in the best possible manner, as mercy and concern for all beings is at the heart of Allah’s message.

Abdullah ibn Amr reported: The Messenger of Allah, peace and blessings be upon him, said:

الرَّاحِمُونَ يَرْحَمُهُمْ الرَّحْمَنُ ارْحَمُوا مَنْ فِي الْأَرْضِ يَرْحَمْكُمْ مَنْ فِي السَّمَاءِ

The merciful will be shown mercy by the Most Merciful. Be merciful to those on the earth and the One in the heavens will have mercy upon you.

Source: Sunan al-Tirmidhī 1924, Grade: Sahih

In this regard, it should be appreciated that changing evil “with one’s hand” refers to direct action and not brute force or violence, unless defending oneself and others from aggression becomes legal and is necessary as a last resort.

Imam Ahmad, may Allah have mercy on him, said:

التَّغْيِيرُ بِالْيَدِ لَيْسَ بِالسَّيْفِ وَالسِّلَاحِ

Changing evil with one’s hand does not necessarily mean with a sword or weapons.

Source: Jāmi’ al-‘Ulūm wal-Ḥikam 2/248

At the same time, Muslims should not be reckless in enjoining good if it might bring excessive harm to oneself and others. This principle is most clearly understood in relation to tyrannical rulers. If one can safely correct their behavior and condemn their evil, without inciting a civil war or greater persecution, it is an obligation to do so. But if confronting the ruler would likely result in bodily harm to oneself and the community, it is no longer an obligation and may even be prohibited.

Sa’id ibn Jubayr reported: I asked Ibn Abbas, may Allah be pleased with him, “Shall I enjoin good and forbid evil upon the ruler?” Ibn Abbas said:

إِنْ خِفْتَ أَنْ يَقْتُلَكَ فَلَا

If you fear he will kill you, then no.

Then, I asked him again and he said:

إِنْ كُنْتَ لَا بُدَّ فَاعِلًا فَفِيمَا بَيْنَكَ وَبَيْنَهُ

If you must do so, then do it between you and him privately.

Source: al-Amr bil-Maʻrūf li-Ibn Abī Dunyā 80

Ibn Rajab commented on this narration, writing:

وَأَمَّا الْخُرُوجُ عَلَيْهِمْ بِالسَّيْفِ فَيُخْشَى مِنْهُ الْفِتَنُ الَّتِي تُؤَدِّي إِلَى سَفْكِ دِمَاءِ الْمُسْلِمِينَ نَعَمْ إِنْ خَشِيَ فِي الْإِقْدَامِ عَلَى الْإِنْكَارِ عَلَى الْمُلُوكِ أَنْ يُؤْذِيَ أَهْلَهُ أَوْ جِيرَانَهُ لَمْ يَنْبَغِ لَهُ التَّعَرُّضُ لَهُمْ حِينَئِذٍ لِمَا فِيهِ مِنْ تَعَدِّي الْأَذَى إِلَى غَيْرِهِ كَذَلِكَ قَالَ الْفُضَيْلُ بْنُ عِيَاضٍ وَغَيْرُهُ وَمَعَ هَذَا فَمَتَى خَافَ مِنْهُمْ عَلَى نَفْسِهِ السَّيْفَ أَوِ السَّوْطَ أَوِ الْحَبْسَ أَوِ الْقَيْدَ أَوِ النَّفْيَ أَوْ أَخْذَ الْمَالِ أَوْ نَحْوَ ذَلِكَ مِنَ الْأَذَى سَقَطَ أَمْرُهُمْ وَنَهْيُهُمْ وَقَدْ نَصَّ الْأَئِمَّةُ عَلَى ذَلِكَ مِنْهُمْ مَالِكٌ وَأَحْمَدُ وَإِسْحَاقُ وَغَيْرُهُمْ

As for rebellion against the rulers with the sword, then it should be feared that they will cause trials leading to the shedding of Muslim blood. Yes, if it is feared that boldness in condemning the rulers will harm his people and his neighbors, it is not appropriate for him to confront them if it involves causing harm to others. Such was said by Al-Fudayl ibn ‘Iyad and others. Along with this, if he fears they will put him to the sword, or whip, or prison, or shackle, or banishment, or seizure of property, and other types of harm like that, then the obligation to enjoin good and forbid evil upon them is dropped. The Imams were explicit about that, among them Malik, Ahmad, Ishaq, and others.

Source: Jāmi’ al-‘Ulūm wal-Ḥikam 2/249

The issue of confronting tyrannical rulers best illustrates the need to wisely consider the harms and benefits of direct action or speech. There are plenty of examples in Islamic history, and human history in general, when zealous revolutionaries incited a civil war in their countries and made a very bad situation even worse than it had been before.

Hasan al-Basri, may Allah have mercy on him, said:

لَوْ أَنَّ النَّاسَ إِذَا ابْتُلُوا مِنْ قِبَلِ سُلْطَانِهِمْ صَبَرُوا مَا لَبِثُوا أَنْ يُفْرَجَ عَنْهُمْ وَلَكِنَّهُمْ يَجْزَعُونَ إِلَى السَّيْفِ فَيُوَكَّلُونَ إِلَيْهِ فَوَاللَّهِ مَا جَاءُوا بِيَوْمِ خَيْرٍ قَطُّ

If people had patience when they are afflicted with trials from their ruler, it would not be long before Allah gives them a way out. Yet they rush to their swords, so they are left to their swords. By Allah, not even for a single day did they bring any good.

Source: al-Ṭabaqāt al-Kubrá 8789

This is not to say that confronting unjust authorities should never be done. On the contrary, it is among the best acts of jihad to speak truth to a tyrant and it is an obligation for those who can reasonably do so. That said, the position of most scholars is that political violence almost always leads to greater evil than the original tyrant. The priority should be the pragmatic safety and well-being of the community, not an abstract commitment to a ruling ideology or Utopian society.

Enjoining good and forbidding evil is a trial, so it should not be rushed into without the prerequisite faith, knowledge, and character. A believer ends up harming themselves or others when they confront a trial without being prepared to endure it or manage its fallout.

Hudhayfah reported: The Messenger of Allah, peace and blessings be upon him, said:

لَا يَنْبَغِي لِلْمُؤْمِنِ أَنْ يُذِلَّ نَفْسَهُ

It is not befitting for a believer to humiliate himself.

They said, “How does he humiliate himself?” The Prophet (ṣ) said:

يَتَعَرَّضُ مِنْ الْبَلَاءِ لِمَا لَا يُطِيقُ

He confronts a trial he cannot endure.

Source: Sunan al-Tirmidhī 2254, Grade: Sahih

Ibn Rajab commented on this tradition, writing:

فَإِنَّمَا يَدُلُّ عَلَى أَنَّهُ إِذَا عَلِمَ أَنَّهُ لَا يُطِيقُ الْأَذَى وَلَا يَصْبِرُ عَلَيْهِ فَإِنَّهُ لَا يَتَعَرَّضُ حِينَئِذٍ لِلْآمِرِ وَهَذَا حَقٌّ

Indeed, it only indicates that if one knows he cannot endure the harm and be patent with it, then in that case one who would enjoin good should not confront it. This is the truth.

Source: Jāmi’ al-‘Ulūm wal-Ḥikam 2/251

Lastly, it is a fact that we will sometimes be confronted with evil that we have no power to change at all, whether it is because we as individuals are in a weak position, or the community as a whole is failing in the collective obligation to forbid evil, or the supporters of evil are too numerous to counter. In such a case, the least we can do, and perhaps the only thing we can do, is to hate the evil we see in our hearts.

Umm Salamah reported: The Messenger of Allah, peace and blessings be upon him, said:

سَتَكُونُ أُمَرَاءُ فَتَعْرِفُونَ وَتُنْكِرُونَ فَمَنْ عَرَفَ بَرِئَ وَمَنْ أَنْكَرَ سَلِمَ وَلَكِنْ مَنْ رَضِيَ وَتَابَعَ

There will be rulers from whom you will see both goodness and corruption. One who recognizes their evil and hates it will maintain his innocence, but one who is pleased with it and follows them will be sinful.

It was said, “Shall we not fight them?” The Prophet (ṣ) said:

لَا مَا صَلَّوْا

No, as long as they pray.

Source: Ṣaḥīḥ Muslim 1854, Grade: Sahih

Ibn Mas’ud, may Allah be pleased with him, said:

يُوشِكُ مَنْ عَاشَ مِنْكُمْ أَنْ يَرَى مُنْكَرًا لا يَسْتَطِيعُ فِيهِ غَيْرَ أَنْ يَعْلَمَ اللَّهُ مِنْ قَلْبِهِ أَنَّهُ لَهُ كَارِهٌ

Soon one of you who lives long enough will see evil he cannot change, yet Allah knows that he hates it in his heart.

Source: al-Amr bil-Maʻrūf li-Ibn Abī Dunyā 79

In sum, enjoining good and forbidding evil should only be done by those who can do so with a sincere intention, knowledge, gentleness, patience, and forbearance. It is only an obligation upon Muslims in so far as they are able to properly effect change, although true believers must always hate evil in their heart. Enjoining good involves the careful consideration of priorities, benefits, and harms, with the objective being to protect the Muslim community’s physical, mental, and spiritual well-being in this life and in the Hereafter.

Success comes from Allah, and Allah knows best.