4 Nevertheless the king's word prevailed against Joab, and against the captains of the army. And Joab and the captains of the army went out from the presence of the king, to number the people of Israel.
5 And they passed over Jordan, and encamped in Aroer, on the right side of the city that lies in the midst of the valley of Gad, and toward Jazer:
6 Then they came to Gilead, and to the land of Tahtim-hodshi; and they came to Dan-jaan, and around to Sidon,
7 And came to the stronghold of Tyre, and to all the cities of the Hivites, and of the Canaanites: and they went out to the south of Judah, even to Beer-sheba.
8 So when they had gone through all the land, they came to Jerusalem at the end of nine months and twenty days.
9 And Joab gave the sum of the number of the people unto the king: and there were in Israel eight hundred thousand valiant men that drew the sword; and the men of Judah were five hundred thousand men.
10 And David's heart condemned him after he had numbered the people. And David said unto the LORD, I have sinned greatly in what I have done: and now, I beseech you, O LORD, take away the iniquity of your servant; for I have done very foolishly.