1 Chronicles 21:7-17 New King James Version (NKJV)
7 And [a]God was displeased with this thing; therefore He struck Israel. 8 So David said to God, “I have sinned greatly, because I have done this thing; but now, I pray, take away the iniquity of Your servant, for I have done very foolishly.”
9 Then the Lord spoke to Gad, David’s seer, saying, 10 “Go and tell David, saying, ‘Thus says the Lord: “I offer you three things; choose one of them for yourself, that I may do it to you.” ’ ”
11 So Gad came to David and said to him, “Thus says the Lord: ‘Choose for yourself, 12 either [b]three years of famine, or three months to be defeated by your foes with the sword of your enemies overtaking you, or else for three days the sword of the Lord—the plague in the land, with the [c]angel of the Lord destroying throughout all the territory of Israel.’ Now consider what answer I should take back to Him who sent me.”
13 And David said to Gad, “I am in great distress. Please let me fall into the hand of the Lord, for His mercies are very great; but do not let me fall into the hand of man.”
14 So the Lord sent a plague upon Israel, and seventy thousand men of Israel fell. 15 And God sent [d]an angel to Jerusalem to destroy it. As [e]he was destroying, the Lord looked and relented of the disaster, and said to the angel who was destroying, “It is enough; now restrain [f]your hand.” And the angel of the Lord stood by the threshing floor of [g]Ornan the Jebusite.
16 Then David lifted his eyes and saw the angel of the Lord standing between earth and heaven, having in his hand a drawn sword stretched out over Jerusalem. So David and the elders, clothed in sackcloth, fell on their faces. 17 And David said to God, “Was it not I who commanded the people to be numbered? I am the one who has sinned and done evil indeed; but these sheep, what have they done? Let Your hand, I pray, O Lord my God, be against me and my father’s house, but not against Your people that they should be plagued.”