Ja'far bin Ma'bad (may Allah have mercy on him) narrates that he and Humayd bin Abd al-Rahman (may Allah have mercy on him) went to Sayyiduna Anas bin Malik (may Allah be pleased with him); Ja'far (may Allah have mercy on him) said: I heard Sayyiduna Anas (may Allah be pleased with him) say: "When we pledged allegiance to the Messenger of Allah (peace and blessings be upon him), he (peace and blessings be upon him) would prompt us (with these words): 'It (hearing and obeying) is to the extent that I am able.'"
Bishr bin Umar (may Allah have mercy on him) narrated it from Shu'bah (may Allah have mercy on him).