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."
حدثنا سعيد بن يعقوب الطالقاني حدثنا ابن المبارك أخبرنا حميد الطويل
قال رسول الله ﷺ أمرت أن أقاتل الناس حتى يشهدوا أن لا إله إلا الله وأن محمدا عبده ورسوله وأن يستقبلوا قبلتنا ويأكلوا ذبيحتنا وأن يصلوا صلاتنا فإذا فعلوا ذلك حرمت علينا دماؤهم وأموالهم إلا بحقها لهم ما للمسلمين وعليهم ما على المسلمين
Bukhari also narrated it, in the Book of Prayer, chapter on the merit of facing the qibla, no. 392, through the hadith of Ibn Mubarak transmitting it, and it is in his Musnad, no. 255. Abu Dawud narrated it, no. 2641, from Saeed bin Yaqub transmitting it.On this subject there are also narrations from Muaz bin Jabal [Ibn Majah, no. 72] and Abu Hurairah [Ibn Majah, no. 71].