The funeral prayer for disbelievers and hypocrites, or supplication and seeking forgiveness for them, is absolutely impermissible
Allah the Exalted says:
➊ وَلَا تُصَلِّ عَلَى أَحَدٍ مِّنْهُم مَّاتَ أَبَدًا وَلَا تَقُمُ عَلى قَبْرِهِ
“Never pray the funeral prayer over any of them who dies, and do not stand at his grave.”
➋ مَا كَانَ لِلنَّبِيِّ وَالَّذِينَ آمَنُوا أَنْ يَسْتَغْفِرُوا لِلْمُشْرِكِيْنَ وَلَوْ كَانُوا أُولِى قُرُبَى
“It is not permissible for the Prophet ﷺ and the other Muslims to supplicate for forgiveness for the polytheists, even if they are close relatives.”
(Nawawi) (may Allah have mercy on him): The funeral prayer for a disbeliever and supplicating for his forgiveness is forbidden, on account of the explicit text of the Quran and the consensus of the Ummah.
(Albani) (may Allah have mercy on him): holds the same view.