Sunan an-Nasa'i #4150 · The Book of al-Bay'ah

Sunan an-Nasa'iIt was narrated that 'Ubadah bin As-Samit said
Sunan an-Nasa'i · Book 39 · The Book of al-Bay'ah
Sunan an-Nasa'i · كتاب 39 · كتاب البيعة
"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 4150In-book reference : Book 39, Hadith 2