The Prophet ﷺ was told about a man who had killed himself by stabbing himself with broad arrowheads, so the Prophet ﷺ said, "In that case, I will not perform the funeral prayer over him."
حدثنا حسن بن موسى حدثنا زهير حدثنا سماك
أن النبي ﷺ ذكر له رجل نحر نفسه بمشاقص فقال النبي ﷺ إذن لا أصلي عليه