2 Samuel 24:10

2 Samuel 24:10 (KJV)
10 And David’s heart smote him after that he had numbered the people. And David said unto the Lord, I have sinned greatly in that I have done: and now, I beseech thee, O Lord, take away the iniquity of thy servant; for I have done very foolishly.

David’s Last Words: Part 2

It was David’s humility, that he showcased before the Lord in prayer, that also helped save the people of Israel from being destroyed.