Islam is totally opposed to euthanasia [Euthanasia: Literally, 'good death'. ]. The Qur’an [Qur'an: That which is read or recited. The Divine Book revealed to the Prophet Muhammad. Allah's final revelation to humankind. ] says that Allah [Allah: The Islamic name for God in the Arabic language ] created all life and everything belongs to him:
To Allah belongs the kingdom of the heavens and the earth. He creates what He pleases.
Because of this, Muslim people are forbidden to kill themselves:
Destroy not yourselves. Surely Allah is ever merciful to you.
Anyone who throws themselves down from a rock and commits suicide will be throwing themselves into Hell. A person who drinks poison and kills themselves will drink it for ever in Hell. A person who stabs themselves will stab themselves for ever in Hell.
If people are suffering badly they should ask Allah for help:
O ye who believe, seek the help of Allah through steadfastness and Prayer; surely Allah is with the steadfast.... We will surely try you with somewhat of fear and hunger, and loss of wealth and lives and fruits; then give glad tidings to the steadfast, who, when a misfortune overtakes them do not lose heart, but say: Surely, to Allah we belong and to Him we will return.
No one has the right to decide when they will die:
When their time... arrives they cannot tarry for a single hour nor can they go ahead.
No one can die except by Allah’s leave, that is a decree with a fixed term.