The Quran gives the basic principles of governance: judging with truth, avoiding following one's desires, giving responsibility to those fit for it, and running affairs by mutual consultation (shura). Even the Prophet ﷺ, who received revelation, was commanded to consult his Companions. Obedience to those in command is mentioned after obedience to Allah and His Messenger, and in case of disagreement the command is to refer the matter back to Allah and His Messenger.
This page arranges the Quran verses about leadership and consultation in seven sections: authority is in Allah's hands, the duties of those in authority, fitness for responsibility, mutual consultation, obeying those in authority (ulul-amr), no obedience in disobedience to Allah, and the pledge of allegiance (bay'ah). Each verse comes with its Arabic text, the English translation (Hilali & Khan) and its tafsir. More verses on justice are on a separate page.