O you who have believed, obey Allāh and obey the Messenger and those in authority among you. And if you disagree over anything, refer it to Allāh and the Messenger, if you should believe in Allāh and the Last Day. That is the best [way] and best in result.
O you who have faith, follow Allah and His Messenger: doing what they instruct and staying away from what they prohibit, and follow those in authority, as long as they do not instruct you to do wrong. If you disagree about something, then refer it to Allah’s revelation and the traditions of His Prophet (peace be upon him), if you have faith in Allah and the Last Day. Referring to the revelation and the traditions is better than continuing in your disagreements and in giving mere opinions, and will bring about the best result for you.