2 Samuel 24:2

New American Standard Bible (NASB)
The king said to Joab the commander of the army who was with him, “Go about now through all the tribes of Israel, from Dan to Beersheba, and [a]register the people, that I may know the number of the people.”

Read 2 Samuel 24:2 in other translations