Ubada bin Samit reported,

We pledged allegiance to the Messenger of Allah ﷺ to listen and obey in hardship and ease, in what we like and what we dislike, not to contest authority with those who hold it, and to speak the truth wherever we are.

Nasai 4157

Sahih

أخبرنا محمد بن يحيى بن أيوب قال حدثنا عبد الله بن إدريس عن ابن إسحق ويحيى بن سعيد

عن عبادة بن الوليد بن عبادة بن الصامت عن أبيه عن جده قال

بايعنا رسول الله ﷺ على السمع والطاعة في العسر واليسر والمنشط والمكره وأن لا ننازع الأمر أهله وعلى أن نقول بالحق حيث كنا

النسائي 4157صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Pledge of allegiance
Chapter
Pledge to speak the truth
Numbering
Darussalam 4157
Nasai 4157