Jabir bin Abdullah reported,

The Messenger of Allah ﷺ said, "I have been commanded to fight people until they declare, 'There is no god but Allah.' Once they say it, their lives and property are protected from me, except for what is due by right, and their reckoning rests with Allah."Then he recited, "You are not over them a controller" [Ghashiyah 88:22].

Azami 7864

Sahih

عن جابر بن عبد الله قال

قال رسول الله ﷺ: أمرت أن أقاتل الناس حتى يقولوا: لا إله إلا الله، فإذا قالوا: لا إله إلا الله عصموا مني دماءهم وأموالهم إلا بحقها، وحسابهم على الله، ثم قرأ{تست عليهم بمصيطر}

الأعظمي 7864صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Command to fight the warring enemies until they say, "There is no god but Allah"
Numbering
Jami al-Kamil 7864 (2nd edition)
Azami 7864