Deuteronomy 9:4-5
9:4 Do not think to yourself after the Lord your God has driven them out before you, “Because of my own righteousness the Lord has brought me here to possess this land.” It is because of the wickedness of these nations that the Lord is driving them out ahead of you.
9:5 It is not because of your righteousness, or even your inner uprightness, that you have come here to possess their land. Instead, because of the wickedness of these nations the Lord your God is driving them out ahead of you in order to confirm the promise he made on oath to your ancestors, to Abraham, Isaac, and Jacob.
Deuteronomy 13:5
13:5 As for that prophet or dreamer, he must be executed because he encouraged rebellion against the Lord your God who brought you from the land of Egypt, redeeming you from that place of slavery, and because he has tried to entice you from the way the Lord your God has commanded you to go. In this way you must purge out evil from within.
Deuteronomy 22:24
22:24 you must bring the two of them to the gate of that city and stone them to death, the young woman because she did not cry out though in the city and the man because he violated his neighbor’s fiancĂ©e; in this way you will purge evil from among you.
Deuteronomy 31:29
31:29 For I know that after I die you will totally corrupt yourselves and turn away from the path I have commanded you to walk. Disaster will confront you in the days to come because you will act wickedly before the Lord, inciting him to anger because of your actions.”