Deuteronomy 9:17-27

17 And I let the stones go from my hands, and they were broken before your eyes.
18 And I went down on my face before the Lord, as at the first, for forty days and forty nights, without taking food or drinking water, because of all your sin, in doing evil in the eyes of the Lord and moving him to wrath.
19 For I was full of fear because of the wrath of the Lord which was burning against you, with your destruction in view. But again the Lord's ear was open to my prayer.
20 And the Lord, in his wrath, would have put Aaron to death: and I made prayer for Aaron at the same time.
21 And I took your sin, the image which you had made, and put it in the fire and had it hammered and crushed very small till it was only dust: and the dust I put in the stream flowing down from the mountain.
22 Again at Taberah and at Massah and at Kibroth-hattaavah you made the Lord angry.
23 And when the Lord sent you from Kadesh-barnea, saying, Go up and take the land which I have given you; you went against the orders of the Lord your God, and had no faith in him, and would not give ear to his voice.
24 From the day when I first had knowledge of you, you have gone against the word of the Lord.
25 So I went down on my face in prayer before the Lord for forty days and forty nights as I did at first; because the Lord had said that he would put an end to you.
26 And I made prayer to the Lord and said, O Lord God, do not send destruction on your people and your heritage, to whom, by your great power, you have given salvation, whom you have taken out of Egypt by the strength of your hand.
27 Keep in mind your servants, Abraham, Isaac, and Jacob, not looking at the hard heart of this people, or their evil-doing and their sin:

Deuteronomy 9:17-27 Meaning and Commentary

INTRODUCTION TO DEUTERONOMY 9

In this chapter the Israelites are assured of the ejection of the Canaanites, though so great and mighty, to make room for them, De 9:1-3, and they are cautioned not to attribute this to their own righteousness, but to the wickedness of the nations which deserved to be so treated, and to the faithfulness of God in performing his promise made to their fathers, De 9:4-6, and that it might appear that it could not be owing to their righteousness, it is affirmed and proved that they had been a rebellious and provoking people from their coming out of Egypt to that time, as was evident from their idolatry at Horeb; a particular account of which is given, and of the displeasure of the Lord at it, De 9:7-21, and of their murmurings, with which they provoked the Lord at other places, De 9:22-24, and the chapter is closed with an account of the prayer of Moses for them at Horeb, to avert the wrath of God from them for their making and worshipping the golden calf, De 9:25-29.

The Bible in Basic English is in the public domain.