Being an Ex-Muslim should not be illegal
The following countries have outlawed Apostasy
Apostasy means leaving religion, for example becoming an ex-Muslim.
Iran – DEATH penalty
Egypt – DEATH penalty
Pakistan – DEATH penalty since 2007
United Arab Emirates – DEATH penalty
Somalia – DEATH penalty
Afghanistan – DEATH penalty
Saudi Arabia – DEATH penalty
Sudan – DEATH penalty
Qatar – DEATH penalty
Yemen – DEATH penalty
Mauritania – DEATH penalty
Syria – DEATH penalty
Jordan – Fine, jail, child custody loss, marriage annulment. Although officials claim otherwise, convictions are recorded for apostasy.
Malaysia – ILLEGAL in five of 13 states (fine, imprisonment, and flogging)
Morocco – ILLEGAL to proselytise conversion (15 years jail, flogging)
Algeria – ILLEGAL to proselytise conversion from Islam, store or circulate materials destabilizing attachment to Islam (2-5 years jail, about 5000-10,000 euros fine)
Universal Declaration of Human Rights
Laws prohibiting religious conversion run contrary to Article 18 of the Universal Declaration of Human Rights, which states: "Everyone has the right to freedom of thought, conscience and religion; this right includes freedom to change his religion or belief."