Deuteronomy 9:5-11 New English Translation (NET)

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.

6. Understand, therefore, that it is not because of your righteousness that the Lord your God is about to give you this good land as a possession, for you are a stubborn people!

7. Remember – don’t ever forget – how you provoked the Lord your God in the desert; from the time you left the land of Egypt until you came to this place you were constantly rebelling against him.

8. At Horeb you provoked him and he was angry enough with you to destroy you.

9. When I went up the mountain to receive the stone tablets, the tablets of the covenant that the Lord made with you, I remained there forty days and nights, eating and drinking nothing.

10. The Lord gave me the two stone tablets, written by the very finger of God, and on them was everything he said to you at the mountain from the midst of the fire at the time of that assembly.

11. Now at the end of the forty days and nights the Lord presented me with the two stone tablets, the tablets of the covenant.

Deuteronomy 9