Answer
Wa `alaykum as-Salamu wa Rahmatullahi wa Barakatuh.
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
1- Indeed, all Muslims are highly urged to keep good relations with their kinship even if they are non-Muslims.
2- But if you fear that your daughter can be influenced by the bad habits or the unacceptable attitudes of her grandmother, you can let her see her granddaughter for a short time under your observance.
Answering your question, the Fatwa Center at Islam Q & A, states:
What we think and advise in such situations is that you should adopt a moderate approach, because moderation is the key to success in relationships between individuals and societies. Moderation is also one of the most important methods of modern education, especially nowadays when there is a great deal of openness and people are in close contact with one another because of means of social communication.
Therefore, imposing restrictions and banning contact does not lead to the desired results as much as a moderate approach may.
One of the most important ways of achieving a moderate approach in this matter is to take into account the age of the daughter and the extent to which she will be influenced by her grandmother. If she is very young, such as if she is an infant who is still being nursed and the like, and she will hardly be affected by the attitudes and character of people with whom she spends a short time, then cutting off ties between the grandmother and her granddaughter will not serve any purpose.
Rather, it will only increase the rift between you and her; this is not good, especially for her son who should honor her and treat her kindly. But if your daughter has reached the age of discernment and has started to learn from the people around her, then there is obviously some risk in letting her visit her grandmother or spend a long time with her, without anyone to keep watch over her.
In that case, she may see her when she is consuming intoxicants or smoking hashish, and curiosity may motivate her to imitate her grandmother in these bad habits, or at least to wonder about how much pleasure she gets from consuming such things, which may create in her an inclination towards sin and lead to a conflict in her mind between the advice and religious practices of her parents, and what she sees of the sins committed lightly by her grandmother.
In that case, nobody can guarantee that the girl will follow the path of guidance, and no one has the power to ward off whispers and bad thoughts in her mind. Then there will be the fear that the parents will bear some share of the burden of that sin, because the child is a trust that is entrusted to the father, who is obliged to protect and take care of the trust that Allah has given to him. A wise man said, “The best that parents may give to the children is praise, good manners and righteous friends.” (Al-Adab as-Sagheer wal-`Adab al-Kabeer p. 34)
If you do decide to let your daughter visit her grandmother, then that should be done in your presence or in the presence of your husband, so that you will be safe from any kind of influence on your daughter, and you can take her away from the place if any harm or trouble arises.
At the same time, all of this does not mean that you should cut off ties completely with her. Rather, we advise you to continue to keep in touch with her and treat her kindly, for the Muslim should be a da`iyah (caller to Allah) in all situations, and he should never despair of anyone being guided. It was narrated from Abu Hurairah (may Allah be pleased with him) that a man said, “O Messenger of Allah, I have relatives with whom I try to keep in touch, but they cut me off. I treat them well, but they abuse me. I am patient and kind towards them, but they insult me. He said, ‘If you are as you say, then it is as if you are putting hot ashes in their mouths. Allah will continue to support you as long as you continue to do that.’” (Muslim)
Moreover, grandchildren are required to honor their grandparents in general terms. Although parents are more entitled to that honor, one should not cut off ties with the grandparents, even if they are disbelievers; in fact they have the right to be honored and for ties with them to be upheld, commensurate with the degree of one’s ties with them.
That is based on the general meaning of the words of Allah Almighty, “But if they (both) strive with you to make you join in worship with Me others that of which you have no knowledge, then obey them not, but behave with them in the world kindly, and follow the path of him who turns to Me in repentance and in obedience. Then to Me will be your return, and I shall tell you what you used to do.” (Luqman 31:15)
Allah Almighty knows best.