Sahih Muslim 21 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أُمِرْتُ أَنْ أُقَاتِلَ النَّاسَ حَتَّى يَقُولُوا لاَ إِلَهَ إِلاَّ اللَّهُ فَمَنْ قَالَ لاَ إِلَهَ إِلاَّ اللَّهُ عَصَمَ مِنِّي مَالَهُ وَنَفْسَهُ إِلاَّ بِحَقِّهِ وَحِسَابُهُ عَلَى اللَّهِ "
It is reported on the authority of Abu Huraira that the Messenger of Allah said:
I have been commanded to fight against people so long as they do not declare that there is no god but Allah, and he who professed it was guaranteed the protection of his property and life on my behalf except for the right affairs rest with Allah.
Full reference and source
Sahih Muslim 21 a In-book : Book 1, Hadith 33 USC-MSA web (English) : Book 1, Hadith 30 (deprecated)
View source on Sunnah.com (opens in a new tab)