It is narrated from Sayyiduna Anas (may Allah be pleased with him) that he said: "I came to Madinah when Sayyiduna Abu Bakr (may Allah be pleased with him) had passed away and Sayyiduna Umar (may Allah be pleased with him) had been made caliph. So I said to Sayyiduna Umar (may Allah be pleased with him): Stretch out your hand so that I may pledge allegiance to you on the same terms on which I pledged allegiance to your companion before you, that is, on hearing and obeying, according to my ability."
Imam al-Tayalisi also narrated something similar through Hammad bin Salamah, at the end of which it says (explaining who is meant by "your companion"): "That is, the Prophet (peace and blessings be upon him) and Sayyiduna Abu Bakr al-Siddiq (may Allah be pleased with him)."
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الخلافة والإمارة / 2107
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده ضعيف؛ لضعف علي بن زيد بن جدعان. » «أخرجه صحيح البخاري برقم: 129، وأخرجه صحيح مسلم برقم: 32، وأخرجه الأحاديث المختارة للضياء برقم: 1842، وأخرجه السنن الكبرى للنسائي برقم: 10879، وأخرجه سنن ابن ماجه برقم: 2868، وأخرجه مسند أحمد برقم: 12386، وأخرجه مسند الطيالسي برقم: 2077، وأخرجه مسند أبي يعلى برقم: 3228، وأخرجه المنتخب من مسند عبد بن حميد برقم: 1199، وأخرجه مسند البزار برقم: 7221، وأخرجه المطالب العالية لابن حجر برقم: 2107 / 2، وأخرجه المعجم الكبير للطبراني برقم: 77، وأخرجه المعجم الصغير للطبراني برقم: 733، وأخرجه المعجم الأوسط للطبراني برقم: 1496»