17 When David saw the angel who was striking down the people, he said to the LORD, “I have sinned; I, the shepherd,a have done wrong. These are but sheep. What have they done? Let your hand fall on me and my family.”

Read 2 Samuel 24:17 Using Other Translations

And David spake unto the LORD when he saw the angel that smote the people, and said, Lo, I have sinned, and I have done wickedly: but these sheep, what have they done? let thine hand, I pray thee, be against me, and against my father's house.
Then David spoke to the LORD when he saw the angel who was striking the people, and said, "Behold, I have sinned, and I have done wickedly. But these sheep, what have they done? Please let your hand be against me and against my father's house."
When David saw the angel, he said to the LORD, “I am the one who has sinned and done wrong! But these people are as innocent as sheep—what have they done? Let your anger fall against me and my family.”