It is not permissible to forsake a Muslim because of differences in points of view
It is not permissible to forsake a Muslim, because the Prophet (peace and blessings of Allaah be upon him) said: “It is not permissible for a man to forsake his Muslim brother for more than three days, each of them turning away from the other when they meet. The better of them is the one who gives the greeting of salaam first.” (Narrated by al-Bukhaari, 5727; Muslim, 2560). This applies especially if the believer is a relative, such as a brother, nephew, uncle or cousin, because in such cases forsaking is an even worse sin.
This applies unless the person is committing a sin and there is an interest to be served by forsaking him, i.e., that it will make him give up the sin. In that case there is nothing wrong with it, because this comes under the heading of removing evil. The Prophet (peace and blessings of Allaah be upon him) said: “Whoever among you sees an evil action, let him change it with his hand [by taking action]; if he cannot, then with his tongue [by speaking out]; if he cannot then with his heart [by hating it and feeling that it is wrong], and that is the weakest of faith.”
(Narrated by Muslim, 49).
The basic principle is that it is haraam for a Muslim to forsake his fellow-Muslim, unless there is a reason to allow it.
See Fataawa Manaar al-Islam, by Ibn ‘Uthaymeen, vol. 3, p. 732.
Wali al-Deen al-‘Iraaqi said:
This prohibition applies in cases where the forsaking is caused by anger with regard to something permissible that has nothing to do with religion. With regard to forsaking someone for a religious reason, such as his committing sin or bid’ah, there is no prohibition on that. The Prophet (peace and blessings of Allaah be upon him) commanded (his companions) to forsake Ka’b ibn Maalik, Hilaal ibn Umayyah and Maraarah ibn al-Rabee’ (may Allaah be pleased with them). Ibn ‘Abd al-Barr said: This hadeeth of Ka’b indicates that it is permissible for a man to forsake his brother if he commits some act of bid’ah or immorality, in the hope that forsaking him may discipline him and serve as a rebuke to him. Abu’l-‘Abbaas al-Qurtubi said: With regard to forsaking a person because of sin or bid’ah, it should be continued until he repents from that and does not go back to it. Ibn ‘Abd al-Barr also said: The scholars are unanimously agreed that it is not permissible for a Muslim to forsake his brother for more than three days, unless there is the fear that speaking to him and keeping in touch with him will affect one’s religious commitment or have some harmful effect on one's spiritual and worldly interests. If that is the case, it is permissible to avoid him, because peaceful avoidance is better than harmful mixing.
Tarh al-Tathreeb, 8/99
What you should do, if your brother has done something haraam, is to advise him and explain that this thing is haraam and is not permitted, and remind him of Allaah. If you see that he is persisting in his sin and you think that forsaking him will serve a purpose, then it is permissible to do so, as stated above. But if he has simply done something that you do not agree with, or it is the matter of different points of view, then you should explain to him that you do not agree with what he has done, or with his mistaken point of view. But if you make forsaking him the sign of your disagreeing with him, this may lead to him rejecting your view completely, let alone the fact that this is not a legitimate shar’i justification for forsaking him for more than three days. We have seen above in the fatwa of Shaykh Ibn ‘Uthaymeen that the basic principle is that it is haraam for a Muslim to forsake his fellow-Muslim, unless there is a reason to allow it.
The Muslim must be forbearing and sincere towards his brothers, he must be tolerant towards them and overlook their mistakes. He should not hasten to adopt a solution that may cause division and haraam kinds of forsaking. May Allaah help us all to do that which He loves and which pleases Him. May Allaah send blessings upon our Prophet Muhammad.