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, and 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 lawful right. They have the same rights as the Muslims and the same obligations as the Muslims."
حدثنا سعيد بن يعقوب الطالقاني حدثنا عبد الله بن المبارك عن حميد
قال رسول الله ﷺ أمرت أن أقاتل الناس حتى يشهدوا أن لا إله إلا الله وأن محمدا عبده ورسوله وأن يستقبلوا قبلتنا وأن يأكلوا ذبيحتنا وأن يصلوا صلاتنا فإذا فعلوا ذلك حرمت علينا دماؤهم وأموالهم إلا بحقها لهم ما للمسلمين وعليهم ما على المسلمين
Bukhari narrated it in "Prayer," chapter on the merit of facing the qibla, hadith no. 392, from the hadith of Ibn Mubarak, and Tirmidhi, hadith no. 2608, from Saeed bin Yaqub, with the same wording, saying, hasan sahih gharib.