The Messenger of Allah [SAW] said: "I have been commanded to fight the people until they say La ilaha illallah (there is none worthy of worship but Allah). Whoever says La ilaha illallah, his wealth and his life are safe from me except for a right that is due, and his reckoning will be with Allah."
أَخْبَرَهُ أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ أُمِرْتُ أَنْ أُقَاتِلَ النَّاسَ حَتَّى يَقُولُوا لاَ إِلَهَ إِلاَّ اللَّهُ فَمَنْ قَالَ لاَ إِلَهَ إِلاَّ اللَّهُ عَصَمَ مِنِّي مَالَهُ وَنَفْسَهُ إِلاَّ بِحَقِّهِ وَحِسَابُهُ عَلَى اللَّهِ ﷻ جَمَعَ شُعَيْبُ بْنُ أَبِي حَمْزَةَ الْحَدِيثَيْنِ جَمِيعًا