We gave the oath of allegiance to Messenger of Allah ﷺ that we would listen to and obey him both at the time when we were active and at the time when we were tired and that we would not fight against the ruler or disobey him, and would stand firm for the truth or say the truth wherever we might be, and in the Way of Allah we would not be afraid of the blame of the blamers. (See Hadith No. 178 and 320) (Using translation from Bukhārī 7199)
بَايَعْنَا رَسُولَ اللهِ ﷺ عَلَى السَّمْعِ وَالطَّاعَةِ فِي الْيُسْرِ وَالْعُسْرِ وَالْمَنْشَطِ وَالْمَكْرَهِ وَأَنْ لَا نُنَازِعَ الْأَمْرَ أَهْلَهُ وَأَنْ نَقُومَ أَوْ نَقُولَ بِالْحَقِّ حَيْثُمَا كُنَّا لَا نَخَافَ فِي اللهِ لَوْمَةَ لَائِمٍ