2 Samuel 24:2

Overview - 2 Samuel 24
David, tempted by Satan, forces Joab to number the people.
The captains, in nine months and twenty days, bring the muster of thirteen hundred thousand fighting men.
10 David repents, and having three plagues propounded by God, chooses the three days' pestilence.
15 After the death of three score and ten thousand, David by prayer prevents the destruction of Jerusalem.
18 David, by God's direction, purchases Araunah's threshing floor; where having sacrificed, the plague stays.
Treasury of Scripture Knowledge

2 Samuel 24:2  (King James Version)
For the king said to Joab the captain of the host, which was with him, Go now through all the tribes of Israel, from Dan even to Beersheba, and number ye the people, that I may know the number of the people.

2:13 8:16 20:23 23:37

Go now, etc
or, Compass now all.
1 Chronicles 21:2

from Dan
3:10 17:11 Judges 20:1

and number
We know not in what the sinfulness of this action consisted. Some think it was a contempt of the promise that the Israelites should be innumerable, and that they ought not to have been numbered without an express command, as in the days of Moses. Others suppose with Josephus that it was a kind of sacrilege, in omitting to collect the half-shekel a-piece for the use of the sanctuary. It however would appear that pride and ambition, and a desire of conquest, induced David to this measure, and rendered it so displeasing to God.

that I may
Deuteronomy 8:13 Deuteronomy 8:14 ; 2 Chronicles 32:25 2 Chronicles 32:26 2 Chronicles 32:31 ; Proverbs 29:23 ; Jeremiah 17:5 ; 2 Corinthians 12:7