Quranic Law Versus Sharia Law
But if they turn away from you, your only duty is a clear delivery of the Message. (Qur'an 16:82)
Say: 'Whatever good betides you is from God and whatever evil betides you is from your own self and that We have sent you to mankind only as a messenger and all sufficing is God as witness. Whoso obeys the Messenger, he indeed obeys God. And for those who turn away, We have not sent you as a keeper.' (Qur'an 4:79-80)
And tell my servants that they should speak in a most kindly manner. Verily, Satan is always ready to stir up discord between men; for verily; Satan is mans foe.... Hence, we have not sent you with power to determine their Faith. (Qur'an 17:53-54)
Say: "Obey God, and obey the Messenger, but if ye turn away, he is only responsible for the duty placed on him and ye for that placed on you. If ye obey him, ye shall be on right guidance. The Messenger's duty is only to preach the clear (Message). (Qur'an 24:54)
And so, invite them your task is only to invite; you cannot compel them to believe. (Qur'an 88:21-22)
You are not a keeper over them. But if they turn aside from you, for We have not sent you to be a keeper over them; your task is but to preach. (Qur'an 42:48)
Obey God then and obey the Messenger, but if you turn away, for the duty of Our Messenger is just to deliver the message. (Qur'an 64:12)
And when they hear vain talk, they turn away there from and say: "To us our deeds, and to you yours; peace be to you: we seek not the ignorant," It is true thou wilt not be able to guide whom thou loves; but God guides those whom He will and He knows best those who receive guidance. (Qur'an 28:55-56)
Assuredly, We have sent down the Book to you in right form for the good of man. Whoso guided himself by it does so to his own advantage, and whoso turns away from it does so at his own loss. You certainly are not their keeper. (Qur'an 39:41)
And they ask, "When shall the promise be fulfilled if you speak the Truth?" Say, "The knowledge of it is verily with God alone, and verily I am but a plain warner..." (Qur'an 67:25-26)
As we can clearly see, many of the verses that talk about obeying the Prophet also emphasize the Prophet's limited authority, something that most Muslims from the Sunni and Shia sects do not recognize. According to them, their ruler has the authority to punish people for what they consider sins like drinking alcohol, eating pork, not fasting during Ramadan, etc.
The Quran meanwhile focuses on crimes against one another such as stealing, killing, the slandering of women and oppression. It gave the believers the right to fight against those who fight them but not to transgress. It also gave people the right to defend themselves against evictions from their lands. There is no talk about punishing people for something that does not concern somebody else's right.
Adultery is the only place where the Quran diverted from this due to the fact that adultery affects another party. The Quran sees adultery as affecting the other partner in a marriage. It’s a betrayal and a breaking of an oath. But even then it placed very strict standards on that but was lenient when it came to punishing slanderers of women. Adultery needs four witnesses but the slanderer can get punished just from opening his mouth without having four witnesses. It’s clear that the verse made it very difficult to implement on adultery but very easy to implement on the slanderer. Thus why we see that the verses about adultery in chapter 24 are in fact dealing with slandering and not adultery. The Quran wanted to end slandering most likely because of the very common honor killing traditions in tribal societies back then. The Quran gave a symbolic penalty for adultery since any person would lie even under oath when facing lashes. The Quran allowed people to utter disbelief when under duress (16:106), so it knows people will lie to avoid lashing. A slanderer meanwhile needs to produce four witnesses or the penalty of flogging can fall on him. Which means he will have to lie when asked even if he saw something. The truth here is not relevant. Even when a spouse has witnessed something he has to swear but the other party also can swear. Most people as we know will simply lie to avoid the punishment since the punishment of this kind has torment in it. The person can simply repent instead. To make up for this we have the verses in chapter 4 which is the more practical way of dealing with it. The Quran here established that adultery is a major sin but made the penalty for it impossible to practice. It's four times easier for a slanderer to get himself in trouble than an adulterer.
Further reading of the verses about the Zani (male adulterer) and Zania (female adulterer) shows us that the issue came up concerning slandering of one of the prophet’s wife presumably.
Nonetheless, the Quran cannot order the Prophet to punish people for sins, that God's job. The Quran gave people the right and freedom to disbelieve let alone sin. How the Quran understands sins is very different than how Sunnis and Shias understand sins.
But the texts of hadith claimed otherwise. The Hadith texts are claimed by Muslims to be the word and deeds of Muhammad that were compiled some two centuries after Muhammad's death. Muslims claim that Muhammad received two revelations from God, one is the Quran the other they claimed are his personal saying and actions collected by later Islamic authorities (oral traditions). Muslims believe that the Sunnah has legal authoritiy and are binding and place a Quran like role when it comes to authority if not more. Almost 90% of Sharia law comes from there. In it the prophet was ordered to fight the people till they acknowledge monotheism and also in it the prophet ordered the execution of those who apostate. That’s why they abrogated many of the verses that limited his authority. Rather than question the hadiths (oral traditions) that claim the prophet believed he can coerce people to follow and obey him, they abrogated the verses of the Quran that contradicted those hadiths. Then they simply transferred that authority to the Muslim ruler by default. The Ridda war story about Abu Bakr (Muhammad's companion) is a case study of this. In that story Abu Bakr apparently fought people for not paying the Zakat which is a charity prescribed in the Quran. Now this absolute authority was transferred from God to the prophet to one of his companions. This made it very easy to then transfer that authority to the ruler. This is why you see places where Shariah law is implemented filled with such concepts like searching cars for alcohol or flogging people for watching porn or not wearing proper attire. None of this should concern anyone but it has become a punishable sin. Muslims believe God only punishes those who did not get caught in this life and punished in this world. Muslims claimed that once punished the sin falls away and disappears. You will not find such a concept in the Quran. God punishes in millions of ways and does not need humans to punish for him. Muslims most likely introduced this concept to make people more accepting of this by making them think its better for them since God's punishment is more severe.
One thing is crystal clear from all this. The Quran's take on human authority and freedom is radically different than how the traditional Muslim sects understand it. Therefore the biggest difference between a state governed by the Quran and an "Islamic" state, is the state's authority over the masses.