Let us ignore the appalling, reprehensible and repugnant suicide of suicide bombers who kill themselves to attain heaven [only in their brainwashed minds!].
For someone to contemplate suicide, let alone carry out the act, is something that is not undertaken on a whim or as a joke. Life is not easy and anything, however trivial, can result in a feeling of hopelessness and helplessness. There is a psychological reason for wanting to end one’s life which we may not understand unless we have been there and so I cannot condemn anyone who has done this.
It says in the Quran that Allah does not place any burden upon a person which they cannot bear, which means that this world has been created with all the means for us to live a harmonious life. However, when man deviates from the natural disposition which benefits him, he creates wrong doing in many shapes and forms. This then takes life far from the burden less one we were given and puts emotional strains upon us.
2:286 God does not burden any person but to afford him an opportunity to develop his potentials. For every person is the good that he earns and against him is only what he deserves. (Pray), “Our Lord! Take us not to task if we forget or miss the mark. Our Lord! Do not place on us a burden like what You placed on those before us. Our Lord! Do not place a burden on us that is beyond our strength to bear. Blot out our misdeeds, grant us the protection of forgiveness, and bestow grace upon us. You are our Lord Supreme, so help us against people who oppose the truth.” [9:51, 10:30. Calling religious leaders as "Maulana‟ (Our Master) is a very common but deplorable form of Shirk, associating others with God]
If we miss the mark through the hopeless situations we find ourselves in, if burdens are placed upon us that drive us to suicide, then the supplication to forgive us if this happens is there, Allah being Most-Forgiving, Most-Merciful.
The following also emphasises man’s weakness:-
4:28 God wishes to lighten your burdens (with His guidance). For, the human being has been created weak. [7:17, 25:28-29]
Another outlook on this is where are our neighbours, family, and friends if we are suicidal? Why are we so negligent to let someone reach a stage where suicide is their only recourse to the pains [emotional and physical] they are suffering?
Suicide for patients who are going to die anyway of their terminal, painful, distressing illnesses is another issue. Under what circumstances should relief of suffering be used to terminate the life of someone? Coma patients cannot make a decision so medical practitioners and family members decide to turn off life support and this is not murder, so allowing someone who can decide for themselves to end their own life when their condition reaches a certain level is being debated globally. Ethics and morality do not give us a black and white, clear cut solution to our problems.
I will let others write about whether if Allah gave us this life, then have we the right to take it away:
6:151 Say, "Come, let me convey to you what your Sustainer has enjoined upon you as a sacred duty: i. Associate none with Him. ii. Honor your parents, treat them kindly and fulfill their needs. iii. Neither kill your children for fear of poverty nor deprive them of proper training and education. We provide for you and for them. (The Divine System will take care of your needs and their needs.) iv. Do not come near immodesty or indecent deeds, whether openly or secretly. v. Do not slay a life - life that God has made sacred - except in the course of justice. This He has commanded you so that you may use your intelligence.”
“Do not slay life”- especially your own?