1 Chronicles 21:5-10
English Standard Version
Chapter 21
5And Joab gave the sum of the numbering of the people to David. In all Israel there were 1,100,000 men who drew the sword, and in Judah 470,000 who drew the sword. 6But he did not include Levi and Benjamin in the numbering, for the king 's command was abhorrent to Joab.
7But God was displeased with this thing, and he struck Israel.
8And David said to God, "I have sinned greatly in that I have done this thing. But now, please take away the iniquity of your servant, for I have acted very foolishly."
9And the Lord spoke to Gad, David 's seer, saying,
10"Go and say to David, ‘Thus says the Lord, Three things I offer you; choose one of them, that I may do it to you.’"