ENOfficial
Narrated Ibn 'Umar: We used to take the oath of allegiance to the Prophet (ﷺ) to hear and obey, and he would tell: In What I am able.
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا حَفْصُ بْنُ عُمَرَ، حَدَّثَنَا شُعْبَةُ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ، قَالَ كُنَّا نُبَايِعُ النَّبِيَّ صلى الله عليه وسلم عَلَى السَّمْعِ وَالطَّاعَةِ وَيُلَقِّنُنَا فِيمَا اسْتَطَعْتَ .
sunnah.com