Riyad as-Salihin, Book 9, Hadith 1076 (In-Book)

Ibn 'Umar (May Allah be pleased with them) reported: The Messenger of Allah said, "I have been commanded to fight against the people till they testify La ilaha illAllah (There is no true god except Allah) and that Muhammad is His slave and Messenger, and to establish As-Salat (Iqamat-as-Salat), and to pay Zakat; and if they do this, then their blood and property are secured except by the rights of Islam, and their accountability is left to Allah."[Al- Bukhari and Muslim].

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

sunnah.com