1 Chronicles 21:1-6 English Standard Version (ESV)
David's Census Brings Pestilence
21 Then Satan stood against Israel and incited David to number Israel. 2 So David said to Joab and the commanders of the army, “Go, number Israel, from Beersheba to Dan, and bring me a report, that I may know their number.” 3 But Joab 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 it be a cause of guilt for Israel?” 4 But the king's word prevailed against Joab. So Joab departed and went throughout all Israel and came back to Jerusalem. 5 And 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. 6 But he did not include Levi and Benjamin in the numbering, for the king's command was abhorrent to Joab.
1 Chronicles 21:1-6 New International Version (NIV)
David Counts the Fighting Men
21 Satan rose up against Israel and incited David to take a census of Israel. 2 So David said to Joab and the commanders of the troops, “Go and count the Israelites from Beersheba to Dan. Then report back to me so that I may know how many there are.”
3 But Joab replied, “May the Lord multiply his troops a hundred times over. My lord the king, are they not all my lord’s subjects? Why does my lord want to do this? Why should he bring guilt on Israel?”
4 The king’s word, however, overruled Joab; so Joab left and went throughout Israel and then came back to Jerusalem. 5 Joab reported the number of the fighting men to David: In all Israel there were one million one hundred thousand men who could handle a sword, including four hundred and seventy thousand in Judah.
6 But Joab did not include Levi and Benjamin in the numbering, because the king’s command was repulsive to him.