2 Samuel 24:10

10Then the heart of David struck him, after the people were numbered. And David said to the Lord: “I have sinned greatly in what I have done. But I pray that you, O Lord, may take away the iniquity of your servant. For I have acted very foolishly.”
24:10 David’s heart struck him, after the people were numbered: That is he was touched with a great remorse for the vanity and pride which had put him upon numbering the people.(Challoner)
Copyright information for CPDV