حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ إِدْرِيسَ، عَنْ حَسَنِ بْنِ فُرَاتٍ، عَنْ أَبِيهِ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ إِنَّ بَنِي إِسْرَائِيلَ كَانَتْ تَسُوسُهُمْ أَنْبِيَاؤُهُمْ كُلَّمَا ذَهَبَ نَبِيٌّ خَلَفَهُ نَبِيٌّ وَأَنَّهُ لَيْسَ كَائِنٌ بَعْدِي نَبِيٌّ فِيكُمْ ‏"‏ ‏.‏ قَالُوا فَمَا يَكُونُ يَا رَسُولَ اللَّهِ قَالَ ‏"‏ تَكُونُ خُلَفَاءُ فَيَكْثُرُوا ‏"‏ ‏.‏ قَالُوا فَكَيْفَ نَصْنَعُ قَالَ ‏"‏ أَوْفُوا بِبَيْعَةِ الأَوَّلِ فَالأَوَّلِ أَدُّوا الَّذِي عَلَيْكُمْ فَسَيَسْأَلُهُمُ اللَّهُ عَزَّ وَجَلَّ عَنِ الَّذِي عَلَيْهِمْ ‏"‏ ‏.‏

It wasnarrated from Abu Hurairah that the Messenger of Allah (PBUH)said: “The affairs of the Children of Israel were administered bytheirProphets. Every time a Prophet left, he was followed by another,butthere will be no Prophet among you after I am gone.” They said:“What will happen, O Messenger of Allah?” He said: “There willbecaliphs and there will be many of them.” They said: “Whatshould wedo?” He said: “Fulfill your pledge to the first one,then the one whocomes after him, and do the duties required of you,for Allah willquestion them about the duties upon them.” Translation Not Available

Book Ref: Sunan Ibn Majah Book 24 Hadith 2871
Web Ref:  Sunan Ibn Majah Vol 4 Book 24 Hadith 2871