Riyad as-Salihin 655
Abu Hurairah (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "The Banu Isra'il were ruled by the Prophets. When one Prophet died, another succeeded him. There will be no Prophet after me. Caliphs will come after me, and they will be many." The Companions said: "O Messenger of Allah, what do you command us to do?" He said, "Fulfill the pledge of allegiance to which is sworn first (then swear allegiance to the others). Concede to them their due rights and ask Allah that which is due to you. Allah will call them to account in respect of the subjects whom He had entrusted to them." [Al-Bukhari and Muslim] .
وعن أبى هريرة رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم‏:‏ ‏
"‏كانت بنو إسرائيل تسوسهم الأنبياء، كلما هلك نبى خلفه نبى، وإنه لا نبى بعدى وسيكون بعدى خلفاء فيكثرون” قالوا‏:‏ يا رسول الله فما تأمرنا‏؟‏ قال‏:‏ ‏"‏أوفوا ببيعة الأول فالأول، ثم أعطوهم حقهم، واسألوا الله الذى لكم ، فإن الله سائلهم عما استرعاهم” ‏(‏‏(‏متفق عليه‏)‏‏)‏