Deuteronomy 9:19-29

19 For I was afraid of the anger and hot displeasure with which the Lord was angry with you, to destroy you. But the Lord listened to me at that time also.
20 And the Lord was very angry with Aaron and would have destroyed him; so I prayed for Aaron also at the same time.
21 Then I took your sin, the calf which you had made, and burned it with fire and crushed it and ground it very small, until it was as fine as dust; and I threw its dust into the brook that descended from the mountain.
22 "Also at Taberah and Massah and Kibroth Hattaavah you provoked the Lord to wrath.
23 Likewise, when the Lord sent you from Kadesh Barnea, saying, 'Go up and possess the land which I have given you,' then you rebelled against the commandment of the Lord your God, and you did not believe Him nor obey His voice.
24 You have been rebellious against the Lord from the day that I knew you.
25 "Thus I prostrated myself before the Lord; forty days and forty nights I kept prostrating myself, because the Lord had said He would destroy you.
26 Therefore I prayed to the Lord, and said: 'O Lord God, do not destroy Your people and Your inheritance whom You have redeemed through Your greatness, whom You have brought out of Egypt with a mighty hand.
27 Remember Your servants, Abraham, Isaac, and Jacob; do not look on the stubbornness of this people, or on their wickedness or their sin,
28 lest the land from which You brought us should say, "Because the Lord was not able to bring them to the land which He promised them, and because He hated them, He has brought them out to kill them in the wilderness."
29 Yet they are Your people and Your inheritance, whom You brought out by Your mighty power and by Your outstretched arm.'
Scripture taken from the New King James Version. Copyright © 1982 by Thomas Nelson, Inc. Used by permission. All rights reserved.