2 Samuel 24:9
And Joab gave up 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.But David took not the number of them from twenty years old and under: because the LORD had said he would increase Israel like to the stars of the heavens. Joab the son of Zeruiah began to number, but he finished not, because there fell wrath for it against Israel; neither was the number put in the account of the chronicles of king David.