We used to take the oath of allegiance to the Prophet (ﷺ) to hear and obey, and he would tell: In What I am able.
Sunan Abi Dawud Book 20, Hadith 13