Obligation to obey the judgement of Allah, what is said by those who are summoned to that, and commanding the right and forbidding the wrong

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

17. Chapter: On the Obligation to obey the judgement of Allah, what is said by those who are summoned to that, and commanding the right and forbidding the wrong

Allah Almighty says, "No, by your Lord, they are not believers until they make you their judge in the disputes that break out between them, and then find no resistance within themselves to what you decide and submit themselves completely," (4:64; H4:65)

and the Almighty says, "The reply of the believers when they are summoned to Allah and His Messenger so that he can judge between them, is to say, 'We hear and we obey.' They are the one who are successful." (W24:49; H24:51)

168. Abu Hurayra who said, "When this verse: 'Everything in the heavens and everything in the earth belongs to Allah. Whether you divulge what is in yourselves or keep it hidden, Allah will still call you to account for it,' (2:283) came down on the Messenger of Allah, may Allah bless him and grant him peace, it was hard for the Companions of the Messenger of Allah to bear. So they went to the Messenger of Allah, and knelt and said, 'O Messenger of Allah, we have been obligated to do actions of which we are capable ­ the prayer, jihad, fasting and sadaqa. Now this ayat has been sent down on you and we are not capable of bearing it.' The Messenger of Allah, may Allah bless him and grant him peace, said, 'Do you want to say as the people of the two Books before you said, "We hear and rebel?" Rather say, "We hear and obey. Your forgiveness, our Lord, and the return is to You."' When the people recited it and their tongues obeyed, Allah Almighty sent down after it, 'The Messenger believes in what has been sent down to him from his Lord, and so do the believers. Each one believes in Allah and His angels and His Books and His Messengers, We do not differentiate between any of his Messengers." They say: "We hear and we obey. Forgive us, our Lord! You are our journey's end."' When they did that, Allah Almighty abrogated it and Allah, the Mighty and Exalted, sent down, 'Allah does not impose on any self any more than it can stand. For it is what it has earned; against it is what it has warranted. Our Lord, do not take us to task if we forget or make a mistake! Our Lord, do not place on us a load like the one You placed on those before us! Our Lord, do not place on us a load which we have not the strength to bear! And pardon us; and forgive us; and have mercy on us. You are our Master so help us against the people of the rejectors."' He said, 'Yes.'" [Muslim]