2Sa 2 Samuel, chapter Second Book of Samuel, chapter 24
And the king says to Joab, head of the host that [is] with him, “Now go to and fro through all the tribes of Israel, from Dan even to Beer-Sheba, and inspect the people; then I have known the number of the people.”