USC-MSA web (English) : Book 21, Hadith 5
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ يَحْيَى بْنِ سَعِيدٍ، قَالَ أَخْبَرَنِي عُبَادَةُ بْنُ الْوَلِيدِ بْنِ عُبَادَةَ بْنِ الصَّامِتِ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، قَالَ بَايَعْنَا رَسُولَ اللَّهِ صلى الله عليه وسلم عَلَى السَّمْعِ وَالطَّاعَةِ فِي الْيُسْرِ وَالْعُسْرِ وَالْمَنْشَطِ وَالْمَكْرَهِ وَأَنْ لاَ نُنَازِعَ الأَمْرَ أَهْلَهُ وَأَنْ نَقُولَ أَوْ نَقُومَ بِالْحَقِّ حَيْثُمَا كُنَّا لاَ نَخَافُ فِي اللَّهِ لَوْمَةَ لاَئِمٍ .
Yahya related to me from Malik that Yahya ibn Said said, ''Ubada ibn al-Walid ibn Ubada ibn as-Samit informed me from his father that his grandfather (Ubada) said, 'We made a contract with the Messenger of Allah (ﷺ) to hear and obey in ease and hardship, enthusiasm and reluctance, and not to dispute with people in authority and to speak or establish the truth wherever we were without worrying about criticism.'"
Full reference and source
USC-MSA web (English) : Book 21, Hadith 5 Arabic : Book 21, Hadith 966
View source on Sunnah.com (opens in a new tab)