[Machine] The Messenger of Allah ﷺ said, "May Allah have mercy on you and forgive you, O uncle. I will continue to seek forgiveness for you until Allah forbids me from doing so." So the Muslims began seeking forgiveness for their deceased pagans. Then Allah Almighty revealed, "It is not for the Prophet and those who have believed to ask forgiveness for the polytheists, even if they were relatives, after it has become clear to them that they are companions of Hellfire." [Quran 9:113]
قَالَ رَسُولُ اللَّهِ ﷺ «رَحِمَكَ اللَّهُ وَغَفَرَ لَكَ يَا عَمُّ وَلَا أَزَالُ أَسْتَغْفِرُ لَكَ حَتَّى يَنْهَانِيَ اللَّهُ ﷻ» فَأَخَذَ الْمُسْلِمُونَ يَسْتَغْفِرُونَ لِمَوْتَاهُمُ الَّذِينَ مَاتُوا وَهُمْ مُشْرِكُونَ فَأَنْزَلَ اللَّهُ تَعَالَى {مَا كَانَ لِلنَّبِيِّ وَالَّذِينَ آمَنُوا أَنْ يَسْتَغْفِرُوا لِلْمُشْرِكِينَ وَلَوْ كَانُوا أُولِي قُرْبَى مِنْ بَعْدِ مَا تَبَيَّنَ لَهُمْ أَنَّهُمْ أَصْحَابُ الْجَحِيمِ} [التوبة 113]