2 Samuel 24:10

24:10 David's heart struck him after that he had numbered the people. David said to Yahweh, I have sinned greatly in that which I have done: but now, Yahweh, put away, I beg you, the iniquity of your servant; for I have done very foolishly.
-World English Bible

Other Translation

24: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.
-King James Version