Bible
Near the end of David's reign, the anger of the LORD was kindled against Israel, and David was incited against them into conducting a census. So the king told Joab, the commander of the army, "Go through all the tribes of Israel, from Dan to Beersheba, and number the people, that I may know the number of the people.” Joab replied, “May the Lord your God add to the people a hundred times as many as they are, while the eyes of my lord the king still see it, but why does my lord the king delight in this thing?” David sent him and the commanders of the army to number the people.
They crossed the Jordan and began from Aroer, and from the city that is in the middle of the valley, toward Gad and on to Jazer. Then they came to Gilead, and to Kadesh in the land of the Hittites; and they came to Dan, and from Dan they went around to Sidon, and came to the fortress of Tyre and to all the cities of the Hivites and Canaanites; and they went out to the Negeb of Judah at Beersheba.
So when they had gone through all the land, they came to Jerusalem at the end of nine months and twenty days. Joab gave the sum of the numbering of the people to the king: in Israel there were 800,000 valiant men who drew the sword, and the men of Judah were 500,000.