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.
tabarani:12583Aḥmad b. Ziyād b. Zakariyyā al-Iyādī > Yazīd b. Qays > Ismāʿīl b. ʿAyyāsh > Jaʿfar b. al-Ḥārith > Abū Isḥāq al-Shaybānī > al-Shaʿbī > Ibn ʿAbbās

[Machine] The Messenger of Allah ﷺ came to a grave and said, "What is this?" They said, "It was buried last night." Ibn Abbas said, "So we lined up behind him and then he prayed for him."  

الطبراني:١٢٥٨٣حَدَّثَنَا أَحْمَدُ بْنُ زِيَادِ بْنِ زَكَرِيَّا الْإِيَادِيُّ ثنا يَزِيدُ بْنُ قَيْسٍ ثنا إِسْمَاعِيلُ بْنُ عَيَّاشٍ حَدَّثَنِي جَعْفَرُ بْنُ الْحَارِثٍ عَنْ أَبِي إِسْحَاقَ الشَّيْبَانِيُّ عَنِ الشَّعْبِيِّ عَنِ ابْنِ عَبَّاسٍ قَالَ

أَتَى رَسُولُ اللهِ ﷺ قَبْرًا فَقَالَ «مَا هَذَا؟» فَقَالُوا دُفِنَ الْبَارِحَةَ قَالَ ابْنُ عَبَّاسٍ «فَصَفَفْنَا خَلْفَهُ ثُمَّ صَلَّى عَلَيْهِ»  


See similar narrations below:

Collected by Bukhārī
bukhari:1326Yaʿqūb b. Ibrāhīm > Yaḥyá b. Abū Bukayr > Zāʾidah > Abū Isḥāq al-Shaybānī > ʿĀmir > Ibn ʿAbbās > Atá

Ibn ʿAbbas (who was at that time a boy) said, "Messenger of Allah ﷺ came to a grave and the people said, 'He or she was buried yesterday.' " Ibn ʿAbbas added, "We aligned behind the Prophet ﷺ and he led the funeral prayer of the deceased."  

البخاري:١٣٢٦حَدَّثَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ حَدَّثَنَا يَحْيَى بْنُ أَبِي بُكَيْرٍ حَدَّثَنَا زَائِدَةُ حَدَّثَنَا أَبُو إِسْحَاقَ الشَّيْبَانِيُّ عَنْ عَامِرٍ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

أَتَى رَسُولُ اللَّهِ ﷺ قَبْرًا فَقَالُوا هَذَا دُفِنَ أَوْ دُفِنَتِ الْبَارِحَةَ قَالَ ابْنُ عَبَّاسٍ ؓ فَصَفَّنَا خَلْفَهُ ثُمَّ صَلَّى عَلَيْهَا