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: 28 Or it may be said in the land from which you have taken them, Because the Lord was not able to take them into the land which he said he would give them, and because of his hate for them, he has taken them out to put them to death in the waste land. 29 But still they are your people and your heritage, whom you took out by your great power and by your stretched-out arm.

Matthew Henry's Commentary on Deuteronomy 9:25-29

Commentary on Deuteronomy 9:7-29

(Read Deuteronomy 9:7-29)

That the Israelites might have no pretence to think that God brought them to Canaan for their righteousness, Moses shows what a miracle of mercy it was, that they had not been destroyed in the wilderness. It is good for us often to remember against ourselves, with sorrow and shame, our former sins; that we may see how much we are indebted to free grace, and may humbly own that we never merited any thing but wrath and the curse at God's hand. For so strong is our propensity to pride, that it will creep in under one pretence or another. We are ready to fancy that our righteousness has got for us the special favour of the Lord, though in reality our wickedness is more plain than our weakness. But when the secret history of every man's life shall be brought forth at the day of judgment, all the world will be proved guilty before God. At present, One pleads for us before the mercy-seat, who not only fasted, but died upon the cross for our sins; through whom we may approach, though self-condemned sinners, and beseech for undeserved mercy and for eternal life, as the gift of God in Him. Let us refer all the victory, all the glory, and all the praise, to Him who alone bringeth salvation.