Abu Hurairah reported the Apostle of Allaah ﷺ as saying “ I am commanded to fight with men till they testify that there is no god but Allaah, when they do that they will keep their life and property safe from me, except what is due to them. (i.e., life and property) and their reckoning will be at Allaah’s hands.” (Using translation from Abū Dāʾūd 2640)
قَالَ رَسُولُ اللهِ ﷺ أُمِرْتُ أَنْ أُقَاتِلَ النَّاسَ حَتَّى يَقُولُوا لَا إِلَهَ إِلَّا اللهُ وَيُقِيمُوا الصَّلَاةَ وَيُؤْتُوا الزَّكَاةَ فَإِذَا فَعَلُوا مَنَعُوا مِنِّي دِمَاءَهُمْ وَأَمْوَالَهُمْ إِلَّا بِحَقِّهَا وَحِسَابُهُمْ عَلَى اللهِ ﷻ