Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "I have been commanded to fight the people until they bear witness that there is no god but Allah and that Muhammad is the Messenger of Allah, and until they establish the prayer and pay the zakat. If they do that, their lives and property are protected from me, except for what Islam rightfully requires, and their reckoning is with Allah."

Azami 7862

Sahih

عن ابن عمر

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

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