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 the Messenger of Allah. When they bear witness that there is no god but Allah and that Muhammad is the Messenger of Allah, face our qiblah, eat what we slaughter, and pray as we pray, then their blood and property become forbidden to us except by right. They have the same rights as the Muslims and the same obligations."

Ahmad 13348

Sahih

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

عن أنس بن مالك

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

أحمد 13348صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 13348
Ahmad 13348