It’s very important for each Muslim to know where he stands and to always keep in mind that, as he is given full right to make use of any opportunity offered by modern technology, he is also required not to forget the duty he owes to Almighty Allah Who subjects to him all such avenues of comfort and prosperity. He must not deviate, whatsoever, from the teachings of his religion, in order to preserve his noble identity.
Sheikh Ahmad Kutty, a senior lecturer and Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states: Chatting with members of opposite sex, whether they are Muslims or non-Muslims, personally face to face, or on phone or chat lines all fall in the same category. The haram of it is haram, and the halal of it is halal.
Islam does not allow Muslims to be befriending members of opposite sex for the sake of companionship or for casual conversations; it has been forbidden because of its risks; it may entail isolation, lead to unlawful flirting, and engender unlawful thoughts, desires or lusts.
however, occasional, serious, business-like conversations with the members of the opposite sex are considered lawful, just as they are lawful when done face to face so long as one observes the Islamic ethics of interaction.
Islam teaches that as Muslims we must shun not only that which is clearly haram, but also everything that creates agitation or doubt or restlessness in our souls. The Prophet (peace and blessings be upon him) said: “Sin is that which causes agitation in your heart or mind; whereas virtue is that which the heart is content and at peace about!” (Reported by Ahmad)
So engaging in unnecessary chatting may lead to unforeseen consequences. It may also engender doubts and suspicions in our minds as well in the minds of others. So we are best advised to shun them altogether in the first place in order to safeguard our religion and honor. The Prophet (peace and blessings be upon him) said: “Halal is clear; haram is clear, but there are certain cases which are dubious or doubtful; whoever shuns them safeguards his religion and honor; whoever falls into them risks falling into haram like a shepherd who lets his herd graze around the forbidden territory, for it may thus encroach upon the forbidden territory!” (Reported by Al-Bukhari and Muslim).