Anas bin Malik reported,

The Messenger of Allah ﷺ said, "I have been commanded to fight the people until they say there is no god but Allah. Once they say it, pray our prayer, face our qiblah, and slaughter as we slaughter, their blood and wealth become forbidden to us except by right, and their reckoning rests with Allah."

Bukhari 392

Sahih

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

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

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

البخاري 392صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Virtue of facing the qibla
Numbering
Darussalam 392
Bukhari 392