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
Hadith No. 4150
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Sahih