It is narrated on the authority of Jabir that the Messenger of Allah (ﷺ) said: I have been commanded that I should fight against people till they declare that there is no god but Allah, and when they profess it that there is no god but Allah, their blood and riches are guaranteed protection on my behalf except where it is justified by law, and their affairs rest with Allah, and then he (the Holy Prophet) recited (this verse of the Holy Qur'an):" Thou art not over them a warden" (lxxxviii, 22).
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.