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:11362Ibrāhīm b. Nāʾilah > Shaybān b. Farrūkh > Nāfiʿ Abū Hurmuz > ʿAṭāʾ > Ibn ʿAbbās

[Machine] That the Prophet ﷺ used to make seven takbirs upon the people of Badr and five takbirs upon the Banu Hashim, then his last prayer consisted of four takbirs until he passed away from this world.  

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

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