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.
bayhaqi:6825Muḥammad b. al-Ḥusayn b. al-Faḍl al-Qaṭṭān > Abū Sahl b. Ziyād al-Qaṭṭān > Abū Ismāʿīl al-Tirmidhī > Abū Ghassān > Qays b. al-Rabīʿ > Ashʿath > al-Shaʿbī

[Machine] That Ali prayed on Ammar ibn Yasir and Hashim ibn Utbah, and he made Ammar ahead of him and Hashim in front of him. When he entered the grave, he made Ammar ahead of him and Hashim behind him.  

البيهقي:٦٨٢٥وَقَدْ أَخْبَرَنَا مُحَمَّدُ بْنُ الْحُسَيْنِ بْنِ الْفَضْلِ الْقَطَّانُ أنبأ أَبُو سَهْلِ بْنُ زِيَادٍ الْقَطَّانُ ثنا أَبُو إِسْمَاعِيلَ التِّرْمِذِيُّ ثنا أَبُو غَسَّانَ ثنا قَيْسُ بْنُ الرَّبِيعِ عَنْ أَشْعَثَ أَنَّهُ أَخْبَرَهُمْ عَنِ الشَّعْبِيِّ

أَنَّ عَلِيًّا صَلَّى عَلَى عَمَّارِ بْنِ يَاسِرٍ وَهَاشِمِ بْنِ عُتْبَةَ فَجَعَلَ عَمَّارًا مِمَّا يَلِيهِ وَهَاشِمًا أَمَامَهُ فَلَمَّا أَدْخَلَهُ الْقَبْرَ جَعَلَ عَمَّارًا أَمَامَهُ وَهَاشِمًا مِمَّا يَلِيهِ  


See similar narrations below:

Collected by Suyūṭī
suyuti:4-2033bal-Shaʿbi
Request/Fix translation

  

السيوطي:٤-٢٠٣٣b

"عن الشَّعْبِىِّ أَنَّ عَلِيّا صَلَّى عَلَى عَمَّارِ بْنِ يَاسِرٍ وَهَاشِمِ بْنِ عُتْبَةَ فَجَعَلَ عَمَّارًا مِمَّا يَلِيه، وَهَاشِمًا أَمَامَهُ، فَلَمَّا أَدْخَلَهُ القَبْرَ جَعَلَ عَمَّارًا أَمَامَهُ وَهَاشِمًا مِمَّا يَلِيهِ".  

[ق] البيهقى في السنن