Satan stood up against Israel, and incited David to count the people of Israel.
So David said to Joab and the commanders of the army, "Go, number Israel, from Beer-sheba to Dan, and bring me a report, so that I may know their number."
But Joab said, "May the Lord increase the number of his people a hundredfold! 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 on Israel?"
But the king's word prevailed against Joab. So Joab departed and went throughout all Israel, and came back to Jerusalem.
Joab gave the total count 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 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 Joab.
But God was displeased with this thing, and he struck Israel.
David said to God, "I have sinned greatly in that I have done this thing. But now, I pray you, take away the guilt of your servant; for I have done very foolishly."
New Revised Standard Version Bible, copyright 1989, 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. (New Revised Standard Bible Version Online)