The Prophet ﷺ said, "I have been commanded to fight the people until they say there is no god but Allah. Once they say there is no god but Allah, their reckoning is with Allah." This is how I found it in the original source.
حدثنا محمد بن عبيد حدثنا يزيد بن كيسان عن أبي حازم
عن النبي ﷺ قال أمرت أن أقاتل الناس حتى يقولوا لا إله إلا الله فإذا قالوا لا إله إلا الله فحسابهم على الله عز وجل هكذا وجدت في أصل ذلك