Mishkat al-Masabih 12
وَعَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «أُمِرْتُ أَنْ أُقَاتِلَ النَّاسَ حَتَّى يَشْهَدُوا أَنْ لَا إِلَهَ إِلَّا اللَّهُ وَأَنَّ مُحَمَّدًا رَسُولُ اللَّهِ وَيُقِيمُوا الصَّلَاةَ وَيُؤْتُوا الزَّكَاةَ فَإِذَا فَعَلُوا ذَلِكَ عَصَمُوا مِنِّي دِمَاءَهُمْ وَأَمْوَالَهُمْ إِلَّا بِحَق الْإِسْلَام وحسابهم على الله. إِلَّا أَنَّ مُسْلِمًا لَمْ يَذْكُرْ» إِلَّا بِحَقِّ الْإِسْلَام
From Ibn ʿUmar, may Allah be pleased with them both, who said: The Messenger of Allah ﷺ said: "I have been commanded to fight the people until they testify that there is no god but Allah and that Muhammad is the Messenger of Allah, establish the salah and give the zakah. When they do that, they have protected their blood and their wealth from me, except by the right of Islam, and their reckoning is with Allah." Except that Muslim did not mention "except by the right of Islam".