We used to take the oath of allegiance to the Prophet (ﷺ) to hear and obey, and he would…

Sunan Abu Dawud Book 20 Hadith 13

Sunan Abu Dawud #2940

Tribute, Spoils, and Rulership (Kitab Al-Kharaj, Wal-Fai' Wal-Imarah) 20:13

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.

Chapter: What Has Been Related About The Bai'ah (Pledge of Allegiance)

Grade: Sahih (Al-Albani)