59 O you who believe! Obey Allah and obey the Messenger and those in authority among you. And if you dispute over anything, refer it to Allah and the Messenger, if you believe in Allah and the Last Day. That is best, and a most excellent determination.
60 Have you not observed those who claim that they believe in what was revealed to you, and in what was revealed before you, yet they seek Satanic sources for legislation, in spite of being commanded to reject them? Satan means to mislead them far away.
61 And when it is said to them, “Come to what Allah has revealed, and to the Messenger,” you see the hypocrites shunning you completely.
62 How about when a disaster strikes them because what their hands have put forward, and then they come to you swearing by Allah: “We only intended goodwill and reconciliation”?
63 They are those whom Allah knows what is in their hearts. So ignore them, and admonish them, and say to them concerning themselves penetrating words.
64 We did not send any messenger except to be obeyed by Allah’s leave. Had they, when they wronged themselves, come to you, and prayed for Allah's forgiveness, and the Messenger had prayed for their forgiveness, they would have found Allah Relenting and Merciful.ا
65 But no, by your Lord, they will not believe until they call you to arbitrate in their disputes, and then find within themselves no resentment regarding your decisions, and submit themselves completely.
4:59-65