[Quran – 4:59] “O you who believe! obey Allah and obey (His) Messenger and those who are in authority among you (to decide your affairs). And should you differ among yourselves in anything, refer it to Allah and His Messenger (and judge according to their teachings), if indeed you believe in Allah and the Last Day. That is (in your) best (interests) and most commendable in the long run.”

The Prophet (Peace Be Upon Him) has said:

[Malik’s Muwatta, Book #46, Hadith #46.1.3] “Yahya related to me from Malik that he heard that the Messenger of Allah, may Allah bless him and grant him peace, said, “I have left two matters with you. As long as you hold to them, you will not go the wrong way. They are the Book of Allah and the Sunnah of His Prophet.”

[Commentary – 4:59] “(Obey Allah and obey the Messenger, and those of you who are in authority.) “Was revealed about `Abdullah bin Hudhafah bin Qays bin `Adi, who the Messenger of Allah sent on a military expedition.” This statement was collected by the Group, with the exception of Ibn Majah At-Tirmidhi said, “Hasan, Gharib”. Imam Ahmad recorded that `Ali said, “The Messenger of Allah sent a troop under the command of a man from Al-Ansar. When they left, he became angry with them for some reason and said to them, ‘Has not the Messenger of Allah commanded you to obey me’ They said, ‘Yes.’ He said, ‘Collect some wood,’ and then he started a fire with the wood, saying, ‘I command you to enter the fire.’ The people almost entered the fire, but a young man among them said, ‘You only ran away from the Fire to Allah’s Messenger. Therefore, do not rush until you go back to Allah’s Messenger, and if he commands you to enter it, then enter it.’ When they went back to Allah’s Messenger, they told him what had happened, and the Messenger said, (Had you entered it, you would never have departed from it. Obedience is only in righteousness.)” This Hadith is recorded in the Two Sahihs.”