1 Chronicles 27:24
Joab the son of Zeruiah began to number, but he finished not, because there fell wrath for it against Israel; neither was the number put in the account of the chronicles of king David. Joab the son of Zeruiah began to number, but he finished not, because there fell wrath for it against Israel; neither was the number put in the account of the chronicles of king David.
The record of Joab beginning to count but not finishing, with wrath falling on Israel and the total left out of David's royal annals, belongs to the account of David's numbering of Israel. That numbering stands as his great sin. It was prompted by Satan, who moved David to take the census. Its aim was the destruction of the seed of Israel.