It was narrated that Abu Hurairah said: "The Messenger of Allah [SAW] said: “I have been commanded to fight the people until they say La ilaha illallah. If they say it, then their blood and wealth are prohibited for me, except for a right that is due, and their reckoning will be with Allah”"
SahihSahihSahih MuslimBook 37 · Hadith 12