Abu Hazim reported,

I sat with Abu Hurayrah for five years and heard him narrate from the Prophet ﷺ that he said, "The children of Israil were governed by the prophets. Whenever a prophet died, another prophet succeeded him. But there will be no prophet after me. There will, however, be caliphs, and they will be many."The companions asked, "What do you order us to do?"He replied, "Fulfill your pledge of allegiance to the first one, then the next, and give them their due rights that Allah has assigned to them. For Allah will question them about what He entrusted to their care."

Ahmad 7960

Sahih

حدثنا محمد بن جعفر حدثنا شعبة عن فرات سمعت

أبا حازم قال

قاعدت أبا هريرة خمس سنين فسمعته يحدث عن النبي ﷺ أنه قال إن بني إسرائيل كانت تسوسهم الأنبياء كلما هلك نبي خلف نبي وإنه لا نبي بعدي إنه سيكون خلفاء فتكثر قالوا فما تأمرنا قال فوا ببيعة الأول فالأول وأعطوهم حقهم الذي جعل الله لهم فإن الله سائلهم عما استرعاهم

أحمد 7960صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 7960
Ahmad 7960