Abu Hurairah reported,

We were with the Messenger of Allah ﷺ at Hunayn when he said about a man who was counted among those who professed Islam, "This man is among the people of the Fire."When the battle began, the man fought fiercely until he was severely wounded. Someone said, "Messenger of Allah, the man you spoke of earlier, the one you said was among the people of the Fire, fought fiercely today and has now died."The Prophet ﷺ said, "To the Fire."Some of the Muslims nearly began to doubt. While they were in that state, it was said that the man had not actually died but had been severely wounded. When night came, he could not endure the pain of his wounds and killed himself.The Prophet ﷺ was informed of this and said, "Allah is the Greatest. I bear witness that I am the servant of Allah and His Messenger."Then he ordered Bilal to announce to the people, "None shall enter Paradise except a Muslim soul, and indeed Allah supports this religion even by means of a wicked man."

Azami 7846

Sahih

عن أبي هريرة قال

شهدنا مع رسول الله ﷺ حنينا، فقال لرجل ممن يدعى بالإسلام: هذا من أهل النار، فلما حضرنا القتال قاتل الرجل قتالا شديدا، فأصابته جراحة، فقيل: يا رسول الله، الرجل الذي قلت له آنفا: إنه من أهل النار، فإنه قاتل اليوم قتالا شديدا وقد مات، فقال النبي ﷺ: إلى النار، فكاد بعض المسلمين أن يرتاب، فبينما هم على ذلك، إذ قيل: إنه لم يمت، ولكن به جراحا شديدا، فلما كان من الليل لم يصبر على الجراح، فقتل نفسه، فأخبر النبي ﷺ بذلك، فقال: الله أكبر أشهد أني عبد الله ورسوله، ثم أمر بلالا فنادى في الناس: إنه لا يدخل الجنة إلا نفس مسلمة، وإن الله ليؤيد هذا الدين بالرجل الفاجر.

الأعظمي 7846صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Allah supports this religion through the wicked man
Numbering
Jami al-Kamil 7846 (2nd edition)
Azami 7846