Sure At-Tawba

9:84

وَلَا تُصَلِّ عَلَىٰٓ أَحَدٍۢ مِّنْهُم مَّاتَ أَبَدًۭا وَلَا تَقُمْ عَلَىٰ قَبْرِهِۦٓ ۖ إِنَّهُمْ كَفَرُوا۟ بِٱللَّهِ وَرَسُولِهِۦ وَمَاتُوا۟ وَهُمْ فَٰسِقُونَ

Und bete niemals über jemandem von ihnen, der gestorben ist, und stehe nicht an seinem Grab! Sie verleugneten ja Allah und Seinen Gesandten, und sie starben als Frevler.

Tafsir 9:84

Do not offer the prayer, O Messenger, over any one of the hypocrites who dies; and do not stand to pray for forgiveness at their gravesides. That is because they disbelieved in Allah and His Messenger, and they died whilst they had left Allah’s obedience. No prayer should be offered for such a person.