Abdullah bin Umar (may Allah be pleased with them both) said: We used to pledge allegiance to the Messenger of Allah (peace and blessings be upon him) to hear and obey, as far as we were able.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قتال أهل البغي / 16554