Masruq reported,

We were sitting with Abdullah bin Masud while he was teaching us the Quran when a man said to him, "Abu Abdul-Rahman, did you ask the Messenger of Allah ﷺ how many caliphs this nation will have?"Abdullah bin Masud replied, "No one has asked me about this since I came to Iraq before you." Then he said, "Yes, we did ask the Messenger of Allah ﷺ, and he said, 'Twelve, like the number of the chiefs of the Children of Israil.'"

Ahmad 3781

Daif

حدثنا حسن بن موسى حدثنا حماد بن زيد عن المجالد عن الشعبي

عن مسروق قال

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

أحمد 3781ضعيف
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Masud
Numbering
Darussalam 3781
Ahmad 3781