Satan stood up against Israel, and incited David to number Israel.
So David said to Jo'ab and the commanders of the army, "Go, number Israel, from Beer-sheba to Dan, and bring me a report, that I may know their number."
But Jo'ab said, "May the LORD add to his people a hundred times as many as they are! Are they not, my lord the king, all of them my lord's servants? Why then should my lord require this? Why should he bring guilt upon Israel?"
But the king's word prevailed against Jo'ab. So Jo'ab departed and went throughout all Israel, and came back to Jerusalem.
And Jo'ab gave the sum of the numbering of the people to David. In all Israel there were one million one hundred thousand men who drew the sword, and in Judah four hundred and seventy thousand who drew the sword.
But he did not include Levi and Benjamin in the numbering, for the king's command was abhorrent to Jo'ab.
But God was displeased with this thing, and he smote Israel.