Usama bin Zayd reported,

The Messenger of Allah ﷺ sent us on a campaign against the Huraqah tribe. We attacked them at dawn and defeated them. A man from the Ansar and I pursued one of their men, and when we overtook him, he said, "There is no god but Allah." The Ansari held back, but I struck him with my spear and killed him.When we returned, news of this reached the Prophet ﷺ, and he said, "Usama, did you kill him after he said, 'There is no god but Allah'?"I replied, "He only said it to seek protection."But he kept repeating the question until I wished I had not become a Muslim before that day.

Azami 9088

Sahih

عن أسامة بن زيد قال

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

الأعظمي 9088صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expeditions that occurred after the conquest of Khaybar and before Amra al-Qadiyyah
Section
Expedition of Zayd bin Haritha to Husma
Numbering
Jami al-Kamil 9088 (2nd edition)
Azami 9088