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, even when others are given preference over us, not to dispute authority with those who hold it, and to speak the truth wherever we may be, fearing no one's blame for the sake of Allah.

Ibn Majah 2866

Sahih

حدثنا علي بن محمد حدثنا عبد الله بن إدريس عن محمد بن إسحق ويحيى بن سعيد وعبيد الله بن عمر وابن عجلان عن عبادة بن الوليد بن عبادة بن الصامت عن أبيه

عن عبادة بن الصامت قال

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

ابن ماجه 2866صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Jihad
Chapter
Pledge of allegiance
Numbering
Darussalam 2866
Ibn Majah 2866