2 Samuel 24:1-9 MSG

1 Once again God's anger blazed out against Israel. He tested David by telling him, "Go and take a census of Israel and Judah."
2 So David gave orders to Joab and the army officers under him, "Canvass all the tribes of Israel, from Dan to Beersheba, and get a count of the population. I want to know the number."
3 But Joab resisted the king: "May your God multiply people by the hundreds right before the eyes of my master the king, but why on earth would you do a thing like this?"
4 Nevertheless, the king insisted, and so Joab and the army officers left the king to take a census of Israel.
5 They crossed the Jordan and began with Aroer and the town in the canyon of the Gadites near Jazer,
6 proceeded through Gilead, passed Hermon, then on to Dan, but detoured Sidon.
7 They covered Fort Tyre and all the Hivite and Canaanite cities, and finally reached the Negev of Judah at Beersheba.
8 They canvassed the whole country and after nine months and twenty days arrived back in Jerusalem.
9 Joab gave the results of the census to the king: 800,000 able-bodied fighting men in Israel; in Judah 500,000.