Hadith 8 from An-Nawawi
BismiLlah Al Rahman Al Rahim,
Abdullah bin ‘Umar (r) narrated that the Messenger of Allah (pbuh) said:
“I have been ordered to fight against people until they testify that there is no god but Allah and that Muhammad is the messenger of Allah and until they perform the prayers and pay the zakat, and if they do so they will have gained protection from me and their lives and property, unless [they do acts that are punishable] in accordance with Islam, and their reckonings will be with Allah the Almighty.”
Unfortunately this hadith is misinterpreted. It was in the early years of Islam. If the unbelievers pay their jizyah (alms tax) then it is lifted.
It affected Abu-Bakr As-Siddiq in fighting the ones who didn’t pay jizyah during his caliphate.
“And those who believe and do righteous deeds – We will surely admit them among the righteous [into Paradise].” (Surat Al-‘Ankabut [29:9])