Sahih al-Bukhari 7202
Book 93: Judgments (Ahkaam) · Narrated by `Abdullah bin `Umar
Arabic
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ كُنَّا إِذَا بَايَعْنَا رَسُولَ اللَّهِ صلى الله عليه وسلم عَلَى السَّمْعِ وَالطَّاعَةِ يَقُولُ لَنَا " فِيمَا اسْتَطَعْتَ ".
English translation
Narrated `Abdullah bin `Umar:Whenever we gave the Pledge of allegiance to Allah's Messenger (ﷺ) for to listen to and obey, he used to say to us, for as much as you can
Reference: Sahih al-Bukhari 7202, Book of Judgments (Ahkaam). English translation by Dr. Muhammad Muhsin Khan.