Aslam

Surah At-Tawbah — 9:113
مَا كَانَ لِلنَّبِيِّ وَٱلَّذِينَ ءَامَنُوٓاْ أَن يَسۡتَغۡفِرُواْ لِلۡمُشۡرِكِينَ وَلَوۡ كَانُوٓاْ أُوْلِي قُرۡبَىٰ مِنۢ بَعۡدِ مَا تَبَيَّنَ لَهُمۡ أَنَّهُمۡ أَصۡحَٰبُ ٱلۡجَحِيمِ
It is not ˹proper˺ for the Prophet and the believers to seek forgiveness for the polytheists, even if they were close relatives, after it has become clear to the believers that they are bound for the Hellfire.

Commentary

It is not right for the Prophet and the believers to seek forgiveness from Allah for the idolaters, even if they are their relatives, after it has become clear to them that they are the people of the fire of Hell – because they died as idolaters.

Read Tafsir Ibn Kathir