Sunan Ibn Majah, Book 24, Hadith 2981 (In-Book) ⓘ
It was narrated from Abu Hurairah that the Messenger of Allah said: “The affairs of the Children of Israel were administered by their Prophets. Every time a Prophet left, he was followed by another, but there will be no Prophet among you after I am gone.” They said: “What will happen, O Messenger of Allah?” He said: “There will be caliphs and there will be many of them.” They said: “What should we do?” He said: “Fulfill your pledge to the first one, then the one who comes after him, and do the duties required of you, for Allah will question them about the duties upon them.”
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ إِدْرِيسَ، عَنْ حَسَنِ بْنِ فُرَاتٍ، عَنْ أَبِيهِ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " إِنَّ بَنِي إِسْرَائِيلَ كَانَتْ تَسُوسُهُمْ أَنْبِيَاؤُهُمْ كُلَّمَا ذَهَبَ نَبِيٌّ خَلَفَهُ نَبِيٌّ وَأَنَّهُ لَيْسَ كَائِنٌ بَعْدِي نَبِيٌّ فِيكُمْ " . قَالُوا فَمَا يَكُونُ يَا رَسُولَ اللَّهِ قَالَ " تَكُونُ خُلَفَاءُ فَيَكْثُرُوا " . قَالُوا فَكَيْفَ نَصْنَعُ قَالَ " أَوْفُوا بِبَيْعَةِ الأَوَّلِ فَالأَوَّلِ أَدُّوا الَّذِي عَلَيْكُمْ فَسَيَسْأَلُهُمُ اللَّهُ عَزَّ وَجَلَّ عَنِ الَّذِي عَلَيْهِمْ " .
also referenced under: Hadith 2871 (Reference) & Volume 4, Book 24, Hadith 2871 (DarusSalam)