The approach to be taken towards hypocrites receives much attention in the Qur'an. In the same way as the believer learns all he needs from the Qur'an, he also learns how to behave in this regard.
The exemplary advice given to believers in the Qur'an is this: that believers should never take hypocrites as their friends, and that they should warn the hypocrites by means of the Qur'an so long as the two remain together. And if the advice given bears no fruit, they should expel the hypocrites from among them. At this point, of course, Allah's messenger must take the final decision regarding the hypocrites. By means of His messenger, Allah enables believers to take the correct decision. Let us now examine those verses concerning the attitude to be adopted towards hypocrites.
As we have seen from the beginning, in the light of the verses of the Qur'an, hypocrites are definitely not the kind of people that one should befriend or confide in. Only those of weak faith or in whose hearts faith is not yet fully established take these people, who fail to befriend Allah and who are in consequence not befriended by Him, as their confidants.
The verses revealed by Allah on this subject encourage believers to be on their guard against hypocrites at all times and never to confide in them. It is a matter of great importance to be on one's guard against hypocrites, who hate the believers and wish them to be dispersed and suffer difficulties.
Implementing the stipulation in the above verse is a matter for the messenger at the head of the people alone. The messenger either rules among the hypocrites, as he desires, or else turns his back on them.
As can be seen from this verse, it is recommended that hypocrites be given effective advice. By this important and effective method, they can come to realize what they have done and regret it. The main thing here is to issue reminders so that they can feel such regret. Someone who fails to heed such advice has declared open war on the religious moral values. Therefore, one must never forget that these people should be spurned, not befriended.
Believers give these people advice in the hope that they will mend their ways. But certainly, every piece of advice increases the suffering in the Hereafter of the hypocrite who turns his back on it. All the advice given to hypocrites is actually a snare, set for them by Allah. By remaining among believers and working in secret, hypocrites imagine that they are being very clever, never realizing that in the Hereafter, they will be recompensed for every piece of advice they received while remaining among believers. In this way they fall into an eternal trap while seeking to set their own snares for believers.
Enjoining what is good and forbidding what is evil is the responsibility of every believer. Yet there is a limit to this. Allah states that if the person being given advice rejects it obdurately, then nothing further should be said to him:
In the event that hypocrites insist in their fanatic denial, further warnings will be of no avail. Believers should leave them to their own devices.
This is a very important piece of advice from Allah. A harsh and determined approach from believers towards hypocrites, who fail to keep their word to Allah, lie and harbor corruption and rebellion in their hearts, has a deterrent effect. Being on one's guard against the strife they will cause, taking relevant precautions beforehand and identifying them in good time before they can wreak any harm are most important duties for believers. Believers have been charged with being on their guard at all times against the danger from hypocrites, exposing these people who harbor sickness in their hearts, and thereby causing others to avoid them. This is indeed what they do.
Taking all due precautionary measures and at the same time, never permitting them the opportunity to cause strife, acts as a warning to later generations of hypocrites.
Hypocrites do not actually struggle alongside believers, because they fail to fear Allah as they ought, are devoted to worldly concerns and feel enormous admiration for deniers. Since they remain lagging behind and choose a life apart from that of believers, Allah commanded the Prophet (saas) never to permit hypocrites to struggle alongside the faithful:
The attitude regarding Samaritan, who cased strife among the people of the Prophet Musa (as), is a most effective precaution that should be recommended against all hypocrites, because hypocrites cause strife among believers and to turn them towards denial, in the same way that they themselves have turned in the direction of denial. Even if they fail, they seek to wear believers down psychologically. In such an event, the most rational course is to remove them from among sincere believers.
Obeying or heeding a hypocrite will result in considerable harm. A person who abandons the behavior pleasing to Allah and goes along with hypocrites is actually following the path of satan. Those who go along with satan represent his army and can never attain salvation, either in this world nor in the next. For that reason, Allah warns believers against this danger and forbids them to engage in behavior such as agreeing with hypocrites' suggestions.
Allah is believers' Guardian and Protector. In times of difficulty and distress, they seek help from Him, and are patient and submissive. They also exhibit fortitude and submit to Allah in the face of difficulties stemming from hypocrites. They pray for the harm that hypocrites seek to inflict to be visited upon them instead. For that reason, Allah tells believers to pay no attention to hypocrites' actions, since these are all ineffective and invalid:
Turn from them and say, "Peace! You will soon come to know." (Surat az-Zukhruf: 89)
As the friends of satan, hypocrites have adopted him as their guardian. Therefore, a believer will avoid hypocrites just as he avoids satan. Since they are the enemies of Allah and religion, believers are also hostile to them as well and feel great anger towards them in their hearts. Indeed, Allah forbids believers to take as friends those who war against them on the subject of religion:
Hypocrites engage in a constant struggle against believers, persisting in cunning activities against them so long as they remain in their midst. If they leave the community of the faithful, they carry out these activities from a distance. For believers' security and peace of mind, therefore, it is of the greatest importance to avoid hypocrites as one would satan himself, and to stay as far away from them as one would from the flames.
Allah has promised that so long as believers avoid them, hypocrites will be able to do them no harm: