The Messenger of Allah ﷺ said, "I have been commanded to fight people until they say 'There is no god but Allah.' Once they say it, their blood and wealth are protected from me, except by its rightful claim, and their reckoning is with Allah." Then he recited, "So remind, you are only a reminder. You are not over them a controller" [Ghashiyah 88:21–22].
حدثنا وكيع عن سفيان ح وعبد الرحمن حدثنا سفيان عن أبي الزبير
قال رسول الله ﷺ أمرت أن أقاتل الناس حتى يقولوا لا إله إلا الله فإذا قالوها عصموا مني بها دماءهم وأموالهم إلا بحقها وحسابهم على الله ثم قرأ {فذكر إنما أنت مذكر لست عليهم بمصيطر}
Its isnad is sahih through both of its routes, and it has already appeared at 13281. It is also found in the sahih collections.