Abu Hurairah reported,

The Messenger of Allah ﷺ said, "I have been commanded to fight people until they testify that there is no god but Allah and believe in me and in what I have brought. When they do so, they have protected their lives and property from me, except by its due right, and their reckoning is with Allah."

Muslim 126

Sahih

حدثنا أحمد بن عبدة الضبي أخبرنا عبد العزيز يعني الدراوردي عن العلاء ح و حدثنا أمية بن بسطام واللفظ له حدثنا يزيد بن زريع حدثنا روح عن العلاء بن عبد الرحمن بن يعقوب عن أبيه

عن أبي هريرة

عن رسول الله ﷺ قال أمرت أن أقاتل الناس حتى يشهدوا أن لا إله إلا الله ويؤمنوا بي وبما جئت به فإذا فعلوا ذلك عصموا مني دماءهم وأموالهم إلا بحقها وحسابهم على الله

مسلم 126صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Command to fight people until they say there is no god but Allah and Muhammad is the Messenger of Allah, establish prayer, give zakat, and believe in all that the Prophet ﷺ brought, and that whoever does so has protected his life and wealth except by its right, and his inner secrets are left to Allah, and fighting those who refuse zakat or other rights of Islam, and the concern of the leader with the symbols of Islam
Numbering
Darussalam 126
Muslim 126