Anas bin Malik reported,

The Messenger of Allah ﷺ said, "I have been commanded to fight people until they bear witness that there is no god but Allah and that Muhammad is His servant and Messenger, until they face our qiblah, eat what we slaughter, and pray as we pray. Once they do that, their blood and property become forbidden to us except by right. They have the same rights as the Muslims and the same obligations as the Muslims."

Tirmidhi 2608

Sahih

حدثنا سعيد بن يعقوب الطالقاني حدثنا ابن المبارك أخبرنا حميد الطويل

عن أنس بن مالك قال

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

الترمذي 2608صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Faith
Chapter
Prophet's ﷺ statement, "I have been commanded to fight them until they say there is no god but Allah and establish prayer"
Numbering
Darussalam 2608
Tirmidhi 2608