السلام عليكم ورحمة الله
Al-Hasan al-Basree (Rahimahullaah) said, "The believer is like a prisoner in this lowly world, who tries to free himself from its shackles and chains, never feeling secure in it, until the day he meets his Lord." [az-Zuhd by Ibn al-Mubaarak]
It is better to advise your friend than to severe relations with him, for no one can take the place of your friend if you lose him. Be generous and lenient with your friend, and do not allow an envious person to come between you and him, for in this case, your friend might die tomorrow and you grieve for him. However, how could you grieve after he dies, when you have shunned him when he was still alive?