2 Samuel 24:1-2
David Displeases the Lord by Taking a Census
24:1 The Lord’s anger again raged against Israel, and he incited David against them, saying, “Go count Israel and Judah.”
24:2 The king told Joab, the general in command of his army, “Go through all the tribes of Israel from Dan to Beer Sheba and muster the army, so I may know the size of the army.”