Ubada bin Samit reported,

We pledged allegiance to the Messenger of Allah ﷺ to listen and obey in ease and in hardship, in what we find pleasant and in what we find disagreeable, not to dispute authority with those who hold it, and to stand for the truth wherever we may be, fearing no one's blame.

Nasai 4154

Sahih

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

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

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

النسائي 4154صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Pledge of allegiance
Chapter
Pledge of allegiance upon hearing and obeying
Numbering
Darussalam 4154
Nasai 4154