Abu Hurairah reported,

The Messenger of Allah ﷺ said, "I have been commanded to fight people until they say, 'There is no god but Allah.' Whoever says, 'There is no god but Allah' has protected his life and property from me, except for what is due upon them, and his reckoning rests with Allah."

Azami 6818

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: أمرت أن أقاتل الناس حتى يقولوا: لا إله إلا الله، فمن قال: لا إله إلا الله فقد عصم منى نفسه وماله إلا بحقه وحسابه على الله.

الأعظمي 6818صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Retaliation and crimes
Chapter
Prohibition of protected blood
Section
Stern prohibition of killing a disbeliever if he accepts Islam and pronounces the two testimonies of faith
Numbering
Jami al-Kamil 6818 (2nd edition)
Azami 6818