Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:1524ʿAmmār b. Khālid al-Wāsiṭī And Sahl b. Abū Sahl > Yaḥyá b. Saʿīd > Mujālid > ʿĀmir > Jābir > Māt Raʾs al-Munāfiqīn Bi-al-Madīnah Waʾawṣá

“The leader of the hypocrites in Al- Madinah died, and left instructions that the Prophet ﷺ should offer the funeral prayer for him and shroud him in his shirt. He offered the funeral prayer for him and shrouded him in his shirt, and stood by his grave. Then Allah revealed the words: ‘And never pray (the funeral prayer) for any of them (hypocrites) who dies, nor stand at his grave.” [9:84]  

ابن ماجة:١٥٢٤حَدَّثَنَا عَمَّارُ بْنُ خَالِدٍ الْوَاسِطِيُّ وَسَهْلُ بْنُ أَبِي سَهْلٍ قَالاَ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ عَنْ مُجَالِدٍ عَنْ عَامِرٍ عَنْ جَابِرٍ قَالَ مَاتَ رَأْسُ الْمُنَافِقِينَ بِالْمَدِينَةِ وَأَوْصَى

أَنْ يُصَلِّيَ عَلَيْهِ النَّبِيُّ ﷺ وَأَنْ يُكَفِّنَهُ فِي قَمِيصِهِ فَصَلَّى عَلَيْهِ وَكَفَّنَهُ فِي قَمِيصِهِ وَقَامَ عَلَى قَبْرِهِ فَأَنْزَلَ اللَّهُ {وَلاَ تُصَلِّ عَلَى أَحَدٍ مِنْهُمْ مَاتَ أَبَدًا وَلاَ تَقُمْ عَلَى قَبْرِهِ}