The Prophet ﷺ looked at a man fighting the polytheists who was one of the most effective Muslims against them, and he said, "Whoever wishes to look at a man from the people of the Fire, let him look at this one."So a man followed him and stayed with him until he was wounded. He then sought to hasten death, so he took the tip of his sword and placed it between his breasts and pressed down on it until it came out from between his shoulders.The Prophet ﷺ said, "Indeed, a servant may do, in what people see, the deeds of the people of Paradise while he is among the people of the Fire, and he may do, in what people see, the deeds of the people of the Fire while he is among the people of Paradise. Deeds are judged only by their endings."
حدثنا علي بن عياش الألهاني الحمصي حدثنا أبو غسان قال حدثني أبو حازم
نظر النبي ﷺ إلى رجل يقاتل المشركين وكان من أعظم المسلمين غناء عنهم فقال من أحب أن ينظر إلى رجل من أهل النار فلينظر إلى هذا فتبعه رجل فلم يزل على ذلك حتى جرح فاستعجل الموت فقال بذبابة سيفه فوضعه بين ثدييه فتحامل عليه حتى خرج من بين كتفيه فقال النبي ﷺ إن العبد ليعمل فيما يرى الناس عمل أهل الجنة وإنه لمن أهل النار ويعمل فيما يرى الناس عمل أهل النار وهو من أهل الجنة وإنما الأعمال بخواتيمها
Bukhari reported the hadith of Abu Ghassan, from Abu Hazim, from Sahl, "Deeds are judged only by their endings." It was narrated by Ibn Abu Hazim, Yaqub bin Abdul-Rahman, and Saeed Jumahi, though they did not include this wording. Muslim reported it only from the hadith of Yaqub.
Al-Hafiz said, in the introduction to Fath al-Bari, vol. 2, p. 140, after quoting Daraqutni's statement that Abu Ghassan alone added the wording "But deeds are judged by their endings," I say, Abu Ghassan added it, and he is trustworthy and a hafiz, so Bukhari relied on him. End of quote.