Sahih al-Bukhari 6891
Makki bin Ibrahim narrated to us that Yazid bin Abi Ubaid told us. He narrated from Salamah (bin Akwa'). He said: We went out with the Prophet (saw) towards Khaibar, and one of the people said: “Amir (ra), recite some of your verses to us.” So he began singing his verses to them. The Prophet (saw) said: “Who is this driver of the camels?” The people said: “Amir (ra).” He (saw) said: “May Allah have mercy on him.” The people said: “O Messenger of Allah (saw), why did you not let us enjoy him longer?” On the morning after that very night he was wounded, and the people said: “All his deeds have come to nothing. He killed himself.” When I came back, they were saying these very things, that Amir's (ra) deeds had come to nothing. (Hearing this) I came to the Prophet (saw) and said: “O Prophet of Allah, may my father and mother be your ransom, the people say that Amir's (ra) deeds have come to nothing.” He (saw) said: “Whoever said so has spoken wrongly. He will have received a double reward. He was one who strove (Jihad), a striver, and what killing could be greater than his killing?”
AI-translated by Islam-Today
Book 17: If someone kills himself by mistake, there is no Diya