2 Samuel 24:17

New American Standard Bible (NASB)
Then David spoke to the Lord when he saw the angel who was striking down the people, and said, “Behold, it is I who have sinned, and it is I who have done wrong; but these sheep, what have they done? Please let Your hand be against me and against my father’s house.”

David Builds an Altar

Read 2 Samuel 24:17 in other translations