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.
And David said to God, "I have sinned greatly in that I have done this thing. But now, I pray thee, take away the iniquity of thy servant; for I have done very foolishly."
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (Revised Standard Version - Holy Bible)