“I heard Anas bin Malik say: ‘We gave our pledge to the Messenger of Allah ﷺ on the basis that we would listen and obey. He ﷺ said: “As much as you can.” (Using translation from Ibn Mājah 2868)
سَمِعْتُ أَنَسَ بْنَ مَالِكٍ يَقُولُ بَايَعْتُ رَسُولَ اللهِ ﷺ بِيَدِي هَذِهِ يَعْنِي الْيُمْنَى عَلَى السَّمْعِ وَالطَّاعَةِ فِيمَا اسْتَطَعْتُ