Mental disorders (including depression, bipolar disorder, schizophrenia, personality disorders, anxiety disorders), physical disorders (such as chronic fatigue syndrome), and substance abuse (including alcoholism and the use of and withdrawal from benzodiazepines) are risk factors. Some suicides are impulsive acts due to stress (such as from financial or academic difficulties), relationship problems (such as breakups or divorces), or harassment and bullying.
The Prophet (ﷺ) said, "Whoever purposely throws himself from a mountain and kills himself, will be in the (Hell) Fire falling down into it and abiding therein perpetually forever; and whoever drinks poison and kills himself with it, he will be carrying his poison in his hand and drinking it in the (Hell) Fire wherein he will abide eternally forever; and whoever kills himself with an iron weapon, will be carrying that weapon in his hand and stabbing his `Abdomen with it in the (Hell) Fire wherein he will abide eternally forever."
“And do not kill yourselves,” declares Quran (nor kill one another). “Allah is, without a doubt, most merciful to you” (Surah al‐Nisa, 4:29).
"Amongst the nations before you there was a man who got a wound, and growing impatient (with its pain), he took a knife and cut his hand with it and the blood did not stop till he died. Allah said, 'My Slave hurried to bring death upon himself so I have forbidden him (to enter) Paradise.' " (Sahih Bukhari: 3469)
The crime of committing suicide is so grave that the Prophet of Allah even refrained from attending the funeral of a person who ended his life. It is mentioned that the Prophet (S.A.W.) refrained from offering the Janazah (funeral prayer) for one who had committed suicide, as a punishment to him and so as to discourage others from doing what he had done. But he gave the people permission to offer the Janazah for him.
‘(The dead body) of a person who had killed himself with a broad-headed arrow was brought before the Messenger of Allah (S.A.W.), but he did not offer prayers for him.’ (Sahih Muslim: 978)
However, this does not mean that we should not pray and make Dua for the mercy and forgiveness of the person who committed suicide. We must make prayers because the person who committed suicide highly needs it as it is a major sin, though this does not take him outside of Islam. It is subject to the will of Allah on the Day of Resurrection, if He wills, He will forgive it, and if He wills, He will punish for it. Remember, when we do commit suicide, we are leaving it without permission from Allah. This is why it is haram in Islam.[3]
So let us, brothers and sisters in Islam, be steadfast in every adverse circumstance and have faith in Allah for one never knows when one is relieved of his bad times, provided he qualifies the test, and his bad days are replaced with happiness and blessings. Let our lives be respected and protected from our hurried decisions
May Allāh (سبحانه و تعالى) help us understand Qur'ān and follow the Sunnah of Prophet Muhammad ﷺ, which is embodiment of commandments of Allah contained in the Qur'ān. May Allah help us to be like the ones He loves and let our lives be lived helping others and not making others' lives miserable or unlivable. May all our wrong doings, whether intentional or unintentional, be forgiven before the angel of death knocks on our door.
Please refer to our reference page: Sunnah and Hadith of Prophet Muhammad ﷺ to know more about sunnah of Prophet of Allah. You may also refer to our Reference Pages for knowing more about Islam and Qur'ān.