Deuteronomy, 9
5. It is not by your merits nor because you are good that you will conquer the land: Yahweh will deprive them of the land because they have done evil, and also to fulfill the promise he swore to your fathers, to Abraham, Isaac and Jacob.