أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ، ثنا أَبُو بَكْرٍ أَحْمَدُ بْنُ سَلْمَانَ الْفَقِيهُ، ثنا جَعْفَرٌ الطَّيَالِسِيُّ، ثنا يَحْيَى بْنُ مَعِينٍ، وَأَحْمَدُ بْنُ حَنْبَلٍ، وَخَلَفُ بْنُ سَالِمٍ، قَالُوا: ثنا غُنْدَرٌ، ثنا شُعْبَةُ، عَنْ حَبِيبِ بْنِ الشَّهِيدِ، عَنْ ثَابِتٍ الْبُنَانِيِّ، عَنْ أَنَسِ بْنِ مَالِكٍ: " أَنَّ رَسُولَ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ صَلَّى عَلَى قَبْرِ امْرَأَةٍ بَعْدَمَا دُفِنَتْ " رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ إِبْرَاهِيمَ بْنِ مُحَمَّدِ بْنِ عَرْعَرَةَ عَنْ غُنْدَرٍ مُخْتَصَرًا، أَنَّ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: صَلَّى عَلَى قَبْرٍ فَقَطْ ".
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) prayed over the grave of a woman after she had been buried.
Muslim recorded it in al-Sahih through Ibrahim bin Muhammad bin Ar'arah from Ghundar in abridged form, that the Prophet (peace and blessings be upon him) "prayed over a grave," only that. [Sahih. Muslim recorded it.]