2 Samuel 24:10

The  Lord’s Judgment of David’s Sin

10But a  David’s heart struck him after he had numbered the people. And David said to the  Lord, b  “I have sinned greatly in what I have done. But now, O  Lord, please take away the iniquity of your servant, for I have done c  very foolishly.”
Copyright information for ESV