1 Chronicles 21:1-2
David, Satan, and Araunah
1-2Now Satan entered the scene and seduced David into taking a census of Israel. David gave orders to Joab and the army officers under him, "Canvass all the tribes of Israel, from Dan to Beersheba, and get a count of the population. I want to know the number."
3Joab resisted: "May God multiply his people by hundreds! Don't they all belong to my master the king? But why on earth would you do a thing like this—why risk getting Israel into trouble with God?"