Abu Hurairah reported,

When the Messenger of Allah ﷺ passed away and Abu Bakr رضي الله عنه became caliph, some of the Arabs reverted to disbelief.Umar رضي الله عنه said, "How can you fight these people, when the Messenger of Allah ﷺ has said, 'I have been commanded to fight people until they declare that there is no god but Allah. Whoever says it has secured his wealth and life from me, except by its rightful claim, and his reckoning is with Allah'?"

Azami 6817

Sahih

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

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

الأعظمي 6817صحيح
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 6817 (2nd edition)
Azami 6817