Hadith 6243

(حديث مرفوع) حَدَّثَنَا حَجَّاجٌ ، حَدَّثَنَا شُعْبَةُ ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ ، سَمِعْتُ ابْنَ عُمَرَ , يَقُولُ : كُنَّا إِذَا بَايَعْنَا رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَلَى السَّمْعِ وَالطَّاعَةِ يُلَقِّنُنَا هُوَ " فِيمَا اسْتَطَعْتُمْ " .
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) used to take allegiance on the condition of listening and obeying, that according to ability (as much as possible, you will listen and obey).
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 6243
Hadith Grading حکم دارالسلام: إسناده صحيح، خ: 7202، م: 1867 .