Leviticus 26:44 CEB

44 But despite all that, when they are in enemy territory, I will not reject them or despise them to the point of totally destroying them, breaking my covenant with them by doing so, because I am the LORD their God.