Abu Saeed Khudri reported,

I will only narrate to you what I heard from the Messenger of Allah ﷺ, what my two ears heard and my heart preserved, that a servant killed ninety-nine souls. Then the thought of repentance occurred to him, so he asked about the most knowledgeable person on earth and was directed to a man. He came to him and said, "I have killed ninety-nine souls. Is there any repentance for me?"The man said, "After killing ninety-nine souls?"So he drew his sword and killed him with it, completing one hundred. Then the thought of repentance occurred to him again, so he asked about the most knowledgeable person on earth and was directed to a man. He came to him and said, "I have killed one hundred souls. Is there any repentance for me?"The man said, "And who could stand between you and repentance? Leave this evil town you are in and go to the righteous town, such-and-such town, and worship your Lord there."So he set out for the righteous town, but death overtook him on the way. The angels of mercy and the angels of punishment disputed over him.Iblis said, "I have the greater right to him, for he never disobeyed me for a single hour."The angels of mercy said, "He left as a repentant man."Hammam said, Humayd Tawil narrated to me from Bakr bin Abdullah Muzani from Abu Rafi who said, So Allah عز وجل sent an angel to them, and they brought their dispute to him.Then he returned to the narration of Qatada, who said, He said, "Look to see which of the two towns he was closer to and join him to its people."Qatada said, Hasan narrated to us, saying, When he sensed death approaching, he strained himself forward, so Allah عز وجل brought the righteous town nearer to him and moved the evil town farther from him, and they joined him to the people of the righteous town.

Ahmad 11154

Sahih

حدثنا يزيد أخبرنا همام بن يحيى حدثنا قتادة عن أبي الصديق الناجي

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

لا أحدثكم إلا ما سمعت من رسول الله ﷺ سمعته أذناي ووعاه قلبي أن عبدا قتل تسعة وتسعين نفسا ثم عرضت له التوبة فسأل عن أعلم أهل الأرض فدل على رجل فأتاه فقال إني قتلت تسعة وتسعين نفسا فهل لي من توبة قال بعد قتل تسعة وتسعين نفسا قال فانتضى سيفه فقتله به فأكمل به مائة ثم عرضت له التوبة فسأل عن أعلم أهل الأرض فدل على رجل فأتاه فقال إني قتلت مائة نفس فهل لي من توبة فقال ومن يحول بينك وبين التوبة اخرج من القرية الخبيثة التي أنت فيها إلى القرية الصالحة قرية كذا وكذا فاعبد ربك فيها قال فخرج إلى القرية الصالحة فعرض له أجله في الطريق قال فاختصمت فيه ملائكة الرحمة وملائكة العذاب قال فقال إبليس أنا أولى به إنه لم يعصني ساعة قط قال فقالت ملائكة الرحمة إنه خرج تائبا قال همام فحدثني حميد الطويل عن بكر بن عبد الله المزني عن أبي رافع قال فبعث الله عز وجل له ملكا فاختصموا إليه ثم رجع إلى حديث قتادة قال فقال انظروا أي القريتين كان أقرب إليه فألحقوه بأهلها قال قتادة فحدثنا الحسن قال لما عرف الموت احتفز بنفسه فقرب الله عز وجل منه القرية الصالحة وباعد منه القرية الخبيثة فألحقوه بأهل القرية الصالحة

أحمد 11154صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Saeed Khudri
Numbering
Darussalam 11154
Ahmad 11154