Apostasy in Islam is when a follower of Islam tries to change or reject their religion. When someone tries to reject their religion, this is called apostasy. The three traits listed below are what is needed for apostasy to be taken seriously.
This means if a Muslim is a child, insane, or being forced, their action does not count as apostasy.
Most Sunni Islam and the Twelvers Shi'a Islamic schools of thought agree that apostasy is a sin. There is a difference between harmful apostasy and harmless apostasy[3] (also known as major and minor apostasy).[1] According to Wael Hallaq, none of the apostasy laws are based on the Qur'an,[4] although the jurist al-Shafi'i interpreted the Qu'ranic verse 2:217 as proof that apostasy is outlawed. This provided the main evidence for apostasy being a capital crime in Islam.[5] Sharia --Islamic law-- says the punishment for apostasy should be death, but the Qu'ran does not have any instructions for punishing apostasy.
Some Islamic jurists[6][7][8][9][10] argued or issued fatwas that the changing of religion is not punishable or is only punishable under restricted circumstances.[11][12][13][14] Some groups within Islam, such as the Shi'a Ismaili, reject death for apostasy altogether.