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:1534Abū Bakr b. Abū Shaybah > ʿAbd al-Aʿlá > Maʿmar > al-Zuhrī > Saʿīd b. al-Musayyab > Abū Hurayrah

“The Messenger of Allah ﷺ said: ‘Najashi has died.’ The Messenger of Allah ﷺ and his Companions went out to Al-Baqi’, and we lined up in rows behind him, and the Messenger of Allah ﷺ went forward, then he said four Takbir.”  

ابن ماجة:١٥٣٤حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا عَبْدُ الأَعْلَى عَنْ مَعْمَرٍ عَنِ الزُّهْرِيِّ عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ عَنْ أَبِي هُرَيْرَةَ

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


See similar narrations below:

Collected by Bukhārī
bukhari:1318Musaddad > Yazīd b. Zurayʿ > Maʿmar > al-Zuhrī > Saʿīd > Abū Hurayrah

The Prophet ﷺ informed his companions about the death of An-Najashi and then he went ahead (to lead the prayer) and the people lined up behind him in rows and he said four Takbir.  

البخاري:١٣١٨حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ حَدَّثَنَا مَعْمَرٌ عَنِ الزُّهْرِيِّ عَنْ سَعِيدٍ عَنْ أَبِي هُرَيْرَةَ ؓ قَالَ

نَعَى النَّبِيُّ ﷺ إِلَى أَصْحَابِهِ النَّجَاشِيَّ ثُمَّ تَقَدَّمَ فَصَفُّوا خَلْفَهُ فَكَبَّرَ أَرْبَعًا