Apostasy in Islam

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 (also known as major and minor apostasy). According to Wael Hallaq, none of the apostasy laws are based on the Qur'an, 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. 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 argued or issued fatwas that the changing of religion is not punishable or is only punishable under restricted circumstances. Some groups within Islam, such as the Shi'a Ismaili, reject death for apostasy altogether.