It's from a quote from a Muslim user I once knew and hoped that it'll clear up some things as well as enlighten people about it. It was mostly about apostasy in Islam
"
"If it had been thy Lord's will, they would all have believed,- all who are on earth! wilt thou then compel mankind, against their will, to believe?" [The Qur'an 10:99]
Apostasy is a topic that can get confusing, especially since in Islam it's not merely the change of ones religion. In the Qur'an for example, it is stated over and over again that there is no compulsion in religion. You simply are not allowed to make someone believe against their will. (I gave one example above, there are others I can share if anyone is interested)
The topic of rejecting religion after being a believer is also mentioned in the Qur'an, but not once is a worldly punishment prescribed for it. For example one verse states:
"Indeed, those who have believed then disbelieved, then believed, then disbelieved, and then increased in disbelief - never will Allah forgive them, nor will He guide them to a way." [4:137]
As you can see it talks about disbelieving after believing over and over again but it never talks about punishing those people in this life. Actually, if people were killed for merely leaving the religion, how can they believe and disbelieve then believe and disbelieve again? Wouldn't they be already dead?
The confusion actually comes from a number of saying by Muhammad about people committing ridda and that they are to be executed. Thing is these sayings were about people who didn't just leave the religion, but they also joined the other side which was fighting Muslims at the time. (In early Islamic history Muslims were persecuted against by the Arab Pagans) In some of these sayings it becomes more clear that it's not just someone who leaves the religion, but someone who acts against the nation. In short, it's someone committing treason in terms we use today.
So as you can say, if you combine the fact that the Qur'an itself speaks against compulsion in matters of religion, with knowing a bit of history behind these sayings it becomes clear that there is no execution for the mere leaving of Islam. And God knows best, of course
"There shall be no compulsion in 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." [2:256]"