1 Chronicles 21:6-8 World English Bible (WEB)

6. But he didn’t count Levi and Benjamin among them; for the king’s word was abominable to Joab.

7. God was displeased with this thing; therefore he struck Israel.

8. David said to God, “I have sinned greatly, in that I have done this thing. But now put away, I beg you, the iniquity of your servant; for I have done very foolishly.”

1 Chronicles 21