1 Chronicles 21:17-20 (WEB)
17 David said to God, “Isn’t it I who commanded the people to be counted? It is even I who have sinned and done very wickedly; but these sheep, what have they done? Please let your hand, O LORD my God, be against me and against my father’s house; but not against your people, that they should be plagued.”
18 Then the LORD’s angel commanded Gad to tell David that David should go up and raise an altar to the LORD on the threshing floor of Ornan the Jebusite.
19 David went up at the saying of Gad, which he spoke in the LORD’s name.
20 Ornan turned back and saw the angel; and his four sons who were with him hid themselves. Now Ornan was threshing wheat.
About 1 Chronicles 21: 1 Chronicles 21 sits in the later years of David’s reign. It follows his census of Israel, which was an act of pride. Satan stood up against Israel and provoked David to number the people in verse 1. Joab warned him this was dangerous, but the king insisted. The count showed trust in military strength rather than in God. This sin brought judgment on the whole nation. God sent Gad the prophet to offer David a choice of three punishments. The options were famine, defeat by enemies, or a pestilence from the Lord in verse 12. Read the study notes
4 verses · Compare in parallel · Read all of 1 Chronicles 21