When the Prophet s prayed over the dead body of ‘Abd Allāh Ibn Ubayy the following was revealed And never pray over any one of them when he is dead nor stand over his grave at a burial or as a visit; lo! they disbelieved in God and His Messenger and died while they were wicked they died disbelieving.
- 9:8484
وَلَا تُصَلِّ عَلَىٰ أَحَدٍ مِنْهُمْ مَاتَ أَبَدًا وَلَا تَقُمْ عَلَىٰ قَبْرِهِ ۖ إِنَّهُمْ كَفَرُوا بِاللَّهِ وَرَسُولِهِ وَمَاتُوا وَهُمْ فَاسِقُونَ
Do not invoke blessings on any of them who die, nor stand to pray at their graves, for they disbelieved in God and His Prophet, and died transgressors.
- common.revelation-Medinan
- common.hizb : 80