Maliks Muwatta Book 55, Hadith Number 1.
Section : About the Oath of Allegiance.
Malik related to me from Abdullah ibn Dinar that Abdullah ibn Umar said, “When we took an oath of allegiance with him to hear and obey, the Messenger of Allah, may Allah bless him and grant him peace, said to us, ‘In what you are able.'”