Verse Quran
4:59 O ye who believe! Obey Allah, and obey the Messenger, and those charged with authority among you. If ye differ in anything among yourselves, refer it to Allah and His Messenger, if ye do believe in Allah and the Last Day: That is best, and most suitable for final determination.
4:83 When there comes to them some matter touching (Public) safety or fear, they divulge it. If they had only referred it to the Messenger, or to those charged with authority among them, the proper investigators would have Tested it from them (direct). Were it not for the Grace and Mercy of Allah unto you, all but a few of you would have fallen into the clutches of Satan.

The Quran's Verse about authority

nourish, ansar, age, provisions, work, captive, spouse, adoption, children, marriage, companions of the wood, job, wicked, usury, poverty, divining arrows, rebellious, bestow, rise of morn, mischief,