1 Satan decided to cause trouble for Israel by making David think it was a good idea to find out how many people there were in Israel and Judah.
2 David told Joab and the army commanders, “Count everyone in Israel, from the town of Beersheba in the south all the way north to Dan. Then I will know how many people can serve in my army.”
3 Joab answered, “Your Majesty, even if the Lord made your kingdom a hundred times larger, you would still rule everyone in it. Why do you need to know how many soldiers there are? Don't you think that would make the whole nation angry?”
4 But David would not change his mind. And so Joab went everywhere in Israel and Judah and counted the people. He returned to Jerusalem
5 and told David that the total number of men who could serve in the army was one million one hundred thousand in Israel and four hundred and seventy thousand in Judah.
6 Joab refused to include anyone from the tribes of Levi and Benjamin, because he still disagreed with David's orders.
7 David's order to count the people made God angry, and he punished Israel.