(1) باب الْبَيْعَةِ عَلَى السَّمْعِ وَالطَّاعَةِ
It was narrated that 'Ubadah bin As-Samit said:
"We pledged to the Messenger of Allah to hear and obey, both in times of hardship and ease." And he mentioned similarly.
Reference: Sunan an-Nasa'i 4150
In-book reference: Book 39, Hadith 2
English translation: Vol. 5, Book 39, Hadith 4155