2 Samuel 24:1-9

1 Again the anger of Yahweh was kindled against Israel, and he moved David against them, saying, Go, number Israel and Judah.
2 The king said to Joab the captain of the host, who was with him, Go now back and forth through all the tribes of Israel, from Dan even to Beersheba, and number you the people, that I may know the sum of the people.
3 Joab said to the king, Now Yahweh your God add to the people, however many they may be, one hundred times; and may the eyes of my lord the king see it: but why does my lord the king delight in this thing?
4 Notwithstanding, the king's word prevailed against Joab, and against the captains of the host. Joab and the captains of the host went out from the presence of the king, to number the people of Israel.
5 They passed over the Jordan, and encamped in Aroer, on the right side of the city that is in the middle of the valley of Gad, and to Jazer:
6 then they came to Gilead, and to the land of Tahtim-hodshi; and they came to Dan-jaan, and round about 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, at Beersheba.
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 numbering 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.
California - Do Not Sell My Personal Information  California - CCPA Notice