2 Samuel 24:8-10 (WEB)
8 So when they had gone back and forth through all the land, they came to Jerusalem at the end of nine months and twenty days.
9 Joab gave up the sum of the counting of the people to the king; and there were in Israel eight hundred thousand valiant men who drew the sword, and the men of Judah were five hundred thousand men.
10 David’s heart struck him after he had counted the people. David said to the LORD, “I have sinned greatly in that which I have done. But now, the LORD, put away, I beg you, the iniquity of your servant; for I have done very foolishly.”
About 2 Samuel 24: The chapter closes the book with a hard lesson about trust. The Lord is angry with Israel, and He permits David to count the people (verse 1). This census was not just a headcount for taxes or armies. It showed David looking at his own power instead of God’s provision. Joab warns him, but David insists on sending the men out to number every tribe from Beersheba to Dan (verses 3-9). When the count is done, David’s heart smites him. He admits he has done a foolish thing and asks for forgiveness (verse 10). Read the study notes
3 verses · Compare in parallel · Read all of 2 Samuel 24