At-Tawba • EN-TAFSIR-IBN-ABBAS
﴿ مَا كَانَ لِلنَّبِىِّ وَٱلَّذِينَ ءَامَنُوٓا۟ أَن يَسْتَغْفِرُوا۟ لِلْمُشْرِكِينَ وَلَوْ كَانُوٓا۟ أُو۟لِى قُرْبَىٰ مِنۢ بَعْدِ مَا تَبَيَّنَ لَهُمْ أَنَّهُمْ أَصْحَٰبُ ٱلْجَحِيمِ ﴾
“IT DOES NOT behove the Prophet and those who have attained to faith to pray that they who ascribed divinity to aught beside God be forgiven [by Him] even though they happened to be [their] near of kin -after it has been made clear unto them that those [dead sinners] are destined for. the blazing fire.”
(It is not for the Prophet) it is not permissible for Muhammad (pbuh) (and those who believe) in Muhammad (pbuh) and in the Qur'an, (to pray for the forgiveness of idolaters even though they may be near of kin (to them) after it hath become clear that they are people of hellfire) i.e. that they have died in a state of disbelief.