It is narrated from Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (ﷺ) said: "I will continue to fight against the people until they testify that there is no deity except Allah. When they testify to this, they have protected their blood and wealth from me, except for its due right, and their reckoning is with Allah the Exalted."
Hadith Referenceمسند الإمام الشافعي / كتاب الجهاد وقسم الغنائم / 1727