Ubada bin Samit reported,

We pledged allegiance to the Messenger of Allah ﷺ to listen and obey in hardship and ease, in what we find pleasing and what we find distasteful, even when others are given preference over us, that we would not contest the authority of those entrusted with it, and that we would speak the truth wherever we were, fearing in Allah's cause the blame of no critic.

Muslim 4768

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا عبد الله بن إدريس عن يحيى بن سعيد وعبيد الله بن عمر

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

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

مسلم 4768صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Leadership
Chapter
Obligation of obeying leaders in matters other than disobedience and its prohibition in disobedience
Numbering
Darussalam 4768
Muslim 4768