Abu Saeed Khudri reported,

The Prophet of Allah ﷺ said, "Among those who came before you was a man who had killed ninety-nine people. He inquired about the most knowledgeable person on earth, and he was directed to a monk. He went to him and said that he had killed ninety-nine people, and asked whether there was any repentance available to him. The monk replied, 'No.' So he killed him too, completing one hundred.Then he inquired again about the most knowledgeable person on earth, and he was directed to a learned man. He said to him that he had killed a hundred people, and asked whether there was any repentance available to him. The scholar replied, 'Yes. Who could stand between him and repentance? Go to such-and-such a land, for there are people there who worship Allah. Worship Allah along with them, and do not return to your own land, for it is an evil land.'So he set out, and when he had reached the halfway point of the journey, death came to him. The angels of mercy and the angels of punishment disputed over him.The angels of mercy said, 'He came in repentance, turning his heart toward Allah.'The angels of punishment said, 'He never did any good at all.'Then an angel came to them in human form, and they made him the judge between them. He said, 'Measure the distance between the two lands. Whichever he is closer to, he belongs to its people.' They measured, and found him to be closer to the land he had set out for, so the angels of mercy took his soul."Qatada said that al-Hasan said, "It was mentioned to us that when death came to him, he strained his chest forward."

Azami 558

Sahih

عن أبي سعيد الخدري

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

الأعظمي 558صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the angels
Section
Dispute between the angels of mercy and the angels of punishment
Numbering
Jami al-Kamil 558 (2nd edition)
Azami 558