Hi. As a Muslim I might have a different insight here. Yes, it is part of our religion to abstain from contact with member of opposite gender. I would recommend that to people but but not sure I would recommend to block your friend immediately. I can't say if a knew Muslim was might be permitted to keep a distance, "Just friends." Relationship. I can't blame him for wanting to follow his religion but it was definitely hard on you for him to cut off with you in a second after 3 years of close friendship. Maybe you should stay away.