Devarim 9:5

5 Not for thy tzedakah, or for the yosher (uprightness) of thine lev, dost thou go to possess their land; but for the wickedness of these Goyim Hashem Eloheicha doth drive them out from before thee, and that He may perform the word which Hashem swore unto Avoteicha, Avraham, Yitzchak, and Ya’akov.

Devarim 9:5 In-Context

3 Understand therefore this day, that Hashem Eloheicha is He which goeth over before thee; as a consuming eish He shall destroy them, and He shall bring them down before thy face; so shalt thou drive them out, and destroy them quickly, as Hashem hath said unto thee.
4 Speak not thou in thine lev, after that Hashem Eloheicha hath cast them out from before thee, saying, For my tzedakah (righteousness) Hashem hath brought me in to possess this land; but for the wickedness of these Goyim Hashem doth drive them out from before thee.
5 Not for thy tzedakah, or for the yosher (uprightness) of thine lev, dost thou go to possess their land; but for the wickedness of these Goyim Hashem Eloheicha doth drive them out from before thee, and that He may perform the word which Hashem swore unto Avoteicha, Avraham, Yitzchak, and Ya’akov.
6 Understand therefore, that Hashem Eloheicha giveth thee not this ha’aretz hatovah to possess it for thy tzedakah; for thou art an Am Kesheh Oref (a stiffnecked people).
7 Remember, and forget not, how thou provokedst Hashem Eloheicha to wrath in the midbar; from the yom that thou didst depart out of Eretz Mitzrayim, until ye came unto this place, ye have been rebellious against Hashem.
The Orthodox Jewish Bible fourth edition, OJB. Copyright 2002,2003,2008,2010, 2011 by Artists for Israel International. All rights reserved.