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 I am the Messenger of Allah, and until they establish the prayer and pay the zakat."
حدثنا أحمد بن الأزهر حدثنا أبو النضر حدثنا أبو جعفر عن يونس عن الحسن
قال رسول الله ﷺ أمرت أن أقاتل الناس حتى يشهدوا أن لا إله إلا الله وأني رسول الله ويقيموا الصلاة ويؤتوا الزكاة
[Sahih, mutawatir] * Hasan is known for practicing concealment in the chain of transmission (Categories of Those Who Practiced Concealment in Transmission / second category), and he transmitted this using "an" without clarifying direct hearing. The hadith has many routes in Bukhari and Muslim and others from Abu Hurairah , and it is among the mutawatir hadiths.