It was recorded by al-Khaṭīb in "al-Mawḍiḥ" (1/68-69). In summary, the ḥadīth is only authentic with the first wording.
أخرجه الخطيب في " الموضح " (١ / ٦٨ - ٦٩) . وجملة القول أن الحديث إنما يصح باللفظ الأول.
"I have been commanded to fight the people until they testify that there is no deity but Allāh and that Muḥammad is His servant and Messenger, and that they face our qiblah, eat our slaughtered animals, and perform our prayer. When they do that, their blood and wealth are protected from us except by its right. They have the rights of the Muslims and bear the obligations of the Muslims." It was recorded by Abū Dāwūd (2641) and al-Tirmidhī (2/100) from Saʿīd ibn Yaʿqūb al-Ṭālaqānī, and al-Nasāʾī (2/161, 269) from Ḥibbān (who is Ibn Mūsá al-Marwazī) and Aḥmad (3/199) from ʿAlī ibn Isḥāq (who is al-Sulamī al-Marwazī), all of them from ʿAbd Allāh ibn al-Mubārak who reported from Ḥumayd al-Ṭawīl from Anas ibn Mālik who said: The Messenger of Allāh (ṣallá Allāhu ʿalayhi wa-sallam) said it, and he mentioned it. Al-Tirmidhī said: "It is a ḥasan ṣaḥīḥ ḥadīth." Ibn Wahb corroborated it: Yāḥyá ibn Ayyūb informed me from Ḥumayd al-Ṭawīl with it. It was recorded by Abū Dāwūd (2642) and al-Ṭaḥāwī in "Sharḥ Maʿānī al-Āthār" (2/123). I say: This isnād is authentic according to the criteria of al-Bukhārī and Muslim, as is the path of Ḥibbān al-Marwazī. It was narrated by Muḥammad ibn ʿAbd Allāh al-Anṣārī who said: Ḥumayd informed us, saying: Maymūn ibn Siyāh asked Anas ibn Mālik, "O Abū Ḥamzah, what makes a Muslim's blood and wealth inviolable?" He said: and he mentioned it as a mawqūf report
" أمرت أن أقاتل الناس حتى يشهدوا أن لا إله إلا الله وأن محمدا عبده ورسولهوأن يستقبلوا قبلتنا ويأكلوا ذبيحتنا وأن يصلوا صلاتنا، فإذا فعلوا ذلك" فقد " حرمت علينا دماؤهم وأموالهم إلا بحقها لهم ما للمسلمين وعليهم ما علىالمسلمين ". أخرجه أبو داود (٢٦٤١) والترمذي (٢ / ١٠٠) عن سعيد بن يعقوب الطالقاني،والنسائي (٢ / ١٦١، ٢٦٩) عن حبان (وهو ابن موسى المروزي) وأحمد(٣ / ١٩٩) عن علي بن إسحاق (وهو السلمي المروزي) كلهم عن عبد الله بنالمبارك أخبرنا حميد الطويل عن أنس بن مالك قال: قال رسول الله صلى اللهعليه وسلم: فذكره. وقال الترمذي: " حديث حسن صحيح ". وتابعه ابن وهب: أخبرني يحيى بن أيوب عن حميد الطويل به. أخرجه أبو داود (٢٦٤٢) والطحاوي في " شرح معاني الآثار " (٢ / ١٢٣) . قلت: وهذا إسناد صحيح على شرط الشيخين، وكذلك طريق حبان المروزي. ورواه محمد بن عبد الله الأنصاري قال: أنبأنا حميد قال: سأل ميمون بن سياهأنس بن مالك قال: يا أبا حمزة ما يحرم دم المسلم وماله، فقال: فذكره موقوفا.