This question already has an answer here:

A few days ago I read in a website (IslamQA.com) that punishment for apostasy under sharia law is death. They also provided a hadith related to that. (the entire fatwa can be read here: http://islamqa.info/en/20824)

But doesn't this contradict the following ayah?

There shall be no compulsion in [acceptance of] the religion. The right course has become clear from the wrong. So whoever disbelieves in Taghut and believes in Allah has grasped the most trustworthy handhold with no break in it. And Allah is Hearing and Knowing." (Surah Al-Baqara: 256)

Please someone clear this confusion.

marked as duplicate by goldPseudo May 26 '15 at 19:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.