Hadithcore
Sahih al-Bukhari, 857
sahih

Narrated Sulaiman Ash-Shaibani:

I heard Ash-Shu`bi saying, "A person who was accompanying the Prophet (ﷺ) passed by a grave that was separated from the other graves told me that the Prophet (ﷺ) once led the people in the (funeral) prayer and the people had aligned behind him. I said, "O Aba `Amr! Who told you about it?" He said, "Ibn `Abbas."

حَدَّثَنَا ابْنُ الْمُثَنَّى، قَالَ حَدَّثَنِي غُنْدَرٌ، قَالَ حَدَّثَنَا شُعْبَةُ، قَالَ سَمِعْتُ سُلَيْمَانَ الشَّيْبَانِيَّ، قَالَ سَمِعْتُ الشَّعْبِيَّ، قَالَ أَخْبَرَنِي مَنْ، مَرَّ مَعَ النَّبِيِّ صلى الله عليه وسلم عَلَى قَبْرٍ مَنْبُوذٍ، فَأَمَّهُمْ وَصَفُّوا عَلَيْهِ‏.‏ فَقُلْتُ يَا أَبَا عَمْرٍو مَنْ حَدَّثَكَ فَقَالَ ابْنُ عَبَّاسٍ‏.‏

References2 variants
In-Book Reference
Book 10, Hadith 248
USC-MSA web (English) reference
Vol. 1, Book 12, Hadith 816 (deprecated numbering scheme)
Sharh · explanationclick to expand
The funeral prayer is a right that the Muslim has over his fellow Muslims; it includes offering supplication for the deceased, seeking forgiveness for him and praying for mercy. In this hadith, ‘Abdullah ibn ‘Abbas (may Allah be pleased with him) narrates that the Prophet (blessings and peace of Allah be upon him) passed by an isolated grave, meaning a grave that was far away from other graves. Those of his companions who were with him formed rows behind him, and he led them in offering the funeral prayer. The one who said in the hadith, “I said: O Abu ‘Amr, who narrated that to you?” was Sulayman al-Shaybani. Abu ‘Amr is al-Sha‘bi, who narrated the report from ‘Abdullah ibn ‘Abbas (may Allah be pleased with him). This hadith indicates that it is permissible to offer the funeral prayer for the deceased after he has been buried in the grave. It also indicates that the Sunnah in the funeral prayer is to form rows, as in all other prayers, and the imam should stand in front of them..
Related hadiths6
Compare isnād across 6 related chains →