Deuteronomy 9:18-20

9:18 Then I again fell down before the Lord for forty days and nights; I ate and drank nothing because of all the sin you had committed, doing such evil before the Lord as to enrage him. 9:19 For I was terrified at the Lord’s intense anger that threatened to destroy you. But he listened to me this time as well. 9:20 The Lord was also angry enough at Aaron to kill him, but at that time I prayed for him too.