this does not apply to the pagans with whom you have a valid peace treaty and who have not broken it from their side or helped others against you. you must fulfill the terms of the peace treaty with them. god loves the pious ones.
إلا الذين عاهدتم من المشركين ثم لم ينقصوكم شيئا ولم يظاهروا عليكم أحدا فأتموا إليهم عهدهم إلى مدتهم إن الله يحب المتقين