The Repentance - 9:84 Do not pray for one of them who has died, nor stand by his grave. For they disobeyed Allah and His Apostle and died as transgressors.
We cannot ask forgiveness for them, even if they are relatives, when it is clear that they are disbelievers:
The Repentance/9:83 "If Allah were to give you again an opportunity when a group of them would ask your permission to go on an expedition, say, "You will not go out with me on campaign forever, and you will not fight any enemy with me. Because at first you chose to sit down. So sit down with the rest."
The Repentance/9:84 Do not pray for one of them who has died, nor stand by his grave. For they disobeyed Allah and His Apostle and died as transgressors.
The Repentance/9:113 Neither the Messenger nor the believers, even if they are relatives, can ask forgiveness for those who associate partners after it has become clear to them that they are the people of Hell.
The Repentance/9:114 The only reason Abraham asked forgiveness for his father was because he had promised it to him beforehand. When it became clear to him that he was an enemy of Allah, he turned away from him. Ibrahim was very sensitive and very compassionate.

The Woman Who Is Examined/60:4 "There is a good example for you in Abraham and those who were with him. Those who were with him said to their people, "We are far from you and those whom you serve besides Allah. We do not know you. There is eternal enmity and hatred between us and you until you believe in Allah ALONE. Except that Abraham´s words to his father, "I will pray for your forgiveness, but I cannot protect you against anything from Allah"(as a mistake). "Our Lord, to You we trust, to You we turn, and to You we shall return."

Prophet Hud/11:44 "And it was said: "O earth, swallow your water, O heaven, hold it."The water subsided, the decision was fulfilled, Judi (Judea) sat upon it and it was said: "Away with the wrongdoers!"
Prophet Hud/11:45 "Noah called out to his Lord: "O my Lord, my son is of my family, and Your promise is true, and You are the best of judges."
Prophet Hud/11:45 "Noah called out to his Lord: "O my Lord, my son is of my family, and Your promise is true, and You are the best of judges."
Prophet Hud/11:46 "He said: "O Noah, he cannot be of your family. It is not virtuous for you to ask me for what you do not know. I advise you not to be among the ignorant."

Mary/19:46 "(His father said:) "Are you turning away from my gods, Abraham? If you do not stop this, I will stone you, go away from me!"
Mary/19:47 "Peace be upon you,"he said, "I will beg my Lord for your forgiveness; He is most merciful to me."
Mary/19:48 I am leaving you and those whom you call upon besides Allah, I call upon my Lord, and I hope that I will not be unfortunate in calling upon my Lord.

The Poets/26:84 Make me a good example for the generations to come.
The Poets/26:85 Make me of those who inherit Paradise of Blessings.
The Poets/26:86 Forgive my father, for he has gone astray.

The Prohibition/66:10 "Allah gives the example of Noah´s wife and Lot´s wife to the disbelievers. They were under the marriage of two righteous servants, but they betrayed them. Their husbands could not ward off anything from Allah. They were both told, "Enter Hell with those who enter it."