Ubaydullah bin Adi reported,

Miqdad bin Amr al-Kindi, who was an ally of the tribe of Zuhrah and one of those who fought at Badr alongside the Messenger of Allah ﷺ, reported that he said to the Messenger of Allah ﷺ, "Tell me, if I encounter a disbeliever in battle and we fight, and he strikes one of my hands with his sword and cuts it off, then takes refuge from me behind a tree and says, 'I submit to Allah,' should I kill him, Messenger of Allah, after he has said that?"The Messenger of Allah ﷺ replied, "Do not kill him."He said, "Messenger of Allah, but he cut off one of my hands, and only said it after cutting it off."The Messenger of Allah ﷺ said, "Do not kill him. If you kill him, he will be in the position you were in before you killed him, and you will be in the position he was in before he spoke the words he spoke."

Azami 193

Sahih

عن عبيد الله بن عدي بن الخيار

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

الأعظمي 193صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Qualities of faith
Section
Prohibition of killing a disbeliever after he says there is no god but Allah, even if he had harmed the Muslims
Numbering
Jami al-Kamil 193 (2nd edition)
Azami 193