Al-Khaṭīb recorded it in al-Mūḍiḥ (1/68–69).
In sum, the hadith is authentic only in its first wording.
303 — “I have been commanded to fight the people until they testify that there is no deity worthy of worship but Allah and that Muhammad is His servant and Messenger; face our qiblah; eat from our slaughtered meat; and perform our prayer. Once they do so, their lives and property become inviolable to us, except where rightfully required. They shall have the same rights as the Muslims, and bear the same obligations as the Muslims.”
Abū Dāwūd (2641) and al-Tirmidhī (2/100) recorded it through Saʿīd ibn Yaʿqūb al-Ṭālaqānī; al-Nasāʾī (2/161, 269), through Ḥibbān—who is Ibn Mūsā al-Marwazī; and Aḥmad (3/199), through ʿAlī ibn Isḥāq—who is al-Sulamī al-Marwazī. All of them narrated from ʿAbd Allāh ibn al-Mubārak, who said: “Ḥumayd al-Ṭawīl informed us, from Anas ibn Mālik, who said: The Messenger of Allah said...” and he then cited it.
Al-Tirmidhī said: “A good, authentic hadith.”
Ibn Wahb corroborated him: “Yaḥyā ibn Ayyūb informed me, from Ḥumayd al-Ṭawīl,” with the same report. Abū Dāwūd (2642) and al-Ṭaḥāwī recorded it in Sharḥ Maʿānī al-Āthār (2/123).
I say: This is an authentic chain of transmission meeting the criteria of the two Shaykhs, as is the route of Ḥibbān al-Marwazī.
Muḥammad ibn ʿAbd Allāh al-Anṣārī also narrated it, saying: “Ḥumayd informed us that Maymūn ibn Siyāh asked Anas ibn Mālik, saying: ‘O Abū Ḥamzah, what renders a Muslim’s life and property inviolable?’ He replied...” and then cited it as a report attributed to the Companion.