Sahih Muslim , Hadith 978

Jabir b. Samura reported: (The dead body) of a person who had killed himself with a broad-headed arrow was brought before the Messenger of Allah, but he did not offer prayers for him.

حَدَّثَنَا عَوْنُ بْنُ سَلاَّمٍ الْكُوفِيُّ، أَخْبَرَنَا زُهَيْرٌ، عَنْ سِمَاكٍ، عَنْ جَابِرِ بْنِ سَمُرَةَ، قَالَ أُتِيَ النَّبِيُّ صلى الله عليه وسلم بِرَجُلٍ قَتَلَ نَفْسَهُ بِمَشَاقِصَ فَلَمْ يُصَلِّ عَلَيْهِ ‏.‏

sunnah.com