Abu Hurayrah (may Allaah be pleased with him) narrated that the Prophet (peace and blessings of Allaah be upon him) said: “Whoever throws himself down from a mountain and kills himself will be in the Fire of Hell, throwing himself down therein for ever and ever. Whoever takes poison and kills himself, his poison will be in his hand and he will be sipping it in the Fire of Hell for ever and ever. Whoever kills himself with a piece of iron, that piece of iron will be in his hand and he will be stabbing himself in the stomach with it in the Fire of Hell, for ever and ever.” Narrated by al-Bukhaari, 5442; Muslim, 109.
It was narrated from Thaabit ibn al-Dahhaak (may Allaah be pleased with him) that the Messenger of Allaah (peace and blessings of Allaah be upon him) said: “Whoever kills himself with something in this world will be punished with it on the Day of Resurrection.” Narrated by al-Bukhaari, 5700; Muslim, 110.
It was narrated that Jundub ibn ‘Abd-Allaah (may Allaah be pleased with him) said: The Messenger of Allaah (peace and blessings of Allaah be upon him) said: “Among those who came before you there was a man who was wounded and he panicked, so he took a knife and cut his hand with it, and the blood did not stop flowing until he died. Allaah said: ‘My slave hastened to bring about his demise; I have forbidden Paradise to him.” Narrated by al-Bukhaari, 3276; Muslim, 113.
The Prophet (peace and blessings of Allaah be upon him) refrained from offering the funeral prayer for one who had committed suicide, as a punishment to him and so as to deter others from doing what he had done. But he gave the people permission to offer the funeral prayer for him, so it is Sunnah for the people of knowledge and virtue not to offer the funeral prayer for one who has committed suicide, following the example of the Prophet (peace and blessings of Allaah be upon him).
It was narrated that Jaabir ibn Samurah (may Allaah have mercy on him) said: A man who had killed himself with a broad arrow-head was brought to the Prophet (peace and blessings of Allaah be upon him) and he did not offer the funeral prayer for him. Narrated by Muslim, 978.
This hadeeth is evidence for those who say that the funeral prayer should not be offered for one who killed himself because of his sin. This is the view of ‘Umar ibn ‘Abd al-‘Azeez and al-Awzaa’i. But al-Hasan, al-Nakha’i, Qataadah, Maalik, Abu Haneefah, al-Shaafa’i and the majority of scholars said that the funeral prayer should be offered for him. They responded to this hadeeth by pointing out that the Prophet (peace and blessings of Allaah be upon him) did not offer the funeral prayer for him himself so as to deter the people from doing something similar, but the Sahaabah offered the funeral prayer for him.
Sharh Muslim, 7/47
Yes , all scholars believe, committing suicide it is a serious major sin but killing other is worst than Major sin, it is equal to kill all humanity since Adam to the end of the world”: “On that account: We ordained for the Children of Israel that if any one slew a person – unless it be for murder or for spreading mischief in the land – it would be as if he slew the whole people: and if any one saved a life, it would be as if he saved the life of the whole people. Then although there came to them Our messengers with clear signs, yet, even after that, many of them continued to commit excesses in the land.” 5:32