Ubada bin Samit reported,

We pledged allegiance to the Messenger of Allah ﷺ to listen and obey in hardship and ease, in what we delight in and what we dislike, not to dispute authority with those who hold it, and to speak the truth wherever we may be, fearing no blame from any blamer for the sake of Allah.

Nasai 4158

Sahih

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

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

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

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