وَلا تُصَلِّ عَلىٰ أَحَدٍ مِنهُم ماتَ أَبَدًا وَلا تَقُم عَلىٰ قَبرِهِ ۖ إِنَّهُم كَفَروا بِاللَّهِ وَرَسولِهِ وَماتوا وَهُم فاسِقونَ
And do not pray [the funeral prayer, O Muhammad], over any of them who has died - ever - or stand at his grave. Indeed, they disbelieved in Allah and His Messenger and died while they were defiantly disobedient.