1 Chronicles 21
Then Satan stood against Israel and incited David to number Israel. So David said to Joab and the commanders of the army, “Go, number Israel, from Beersheba to Dan, and bring me a report, that I may know their number.” But Joab said, “May the LORD add to his people a hundred times as many as they are! Are they not, my lord the king, all of them my lord's servants? Why then should my lord require this? Why should it be a cause of guilt for Israel?” But the king's word prevailed against Joab. So Joab departed and went throughout all Israel and came back to Jerusalem. And Joab gave the sum of the numbering of the people to David. In all Israel there were 1,100,000 men who drew the sword, and in Judah 470,000 who drew the sword. But he did not include Levi and Benjamin in the numbering, for the king's command was abhorrent to Joab.
But God was displeased with this thing, and he struck Israel. And David said to God, “I have sinned greatly in that I have done this thing. But now, please take away the iniquity of your servant, for I have acted very foolishly.” And the LORD spoke to Gad, David's seer, saying, “Go and say to David, ‘Thus says the LORD, Three things I offer you; choose one of them, that I may do it to you.’” So Gad came to David and said to him, “Thus says the LORD, ‘Choose what you will: either three years of famine, or three months of devastation by your foes while the sword of your enemies overtakes you, or else three days of the sword of the LORD, pestilence on the land, with the angel of the LORD destroying throughout all the territory of Israel.’ Now decide what answer I shall return to him who sent me.” Then David said to Gad, “I am in great distress. Let me fall into the hand of the LORD, for his mercy is very great, but do not let me fall into the hand of man.”
So the LORD sent a pestilence on Israel, and 70,000 men of Israel fell. And God sent the angel to Jerusalem to destroy it, but as he was about to destroy it, the LORD saw, and he relented from the calamity. And he said to the angel who was working destruction, “It is enough; now stay your hand.” And the angel of the LORD was standing by the threshing floor of Ornan the Jebusite. And David lifted his eyes and saw the angel of the LORD standing between earth and heaven, and in his hand a drawn sword stretched out over Jerusalem. Then David and the elders, clothed in sackcloth, fell upon their faces. And David said to God, “Was it not I who gave command to number the people? It is I who have sinned and done great evil. 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 do not let the plague be on your people.”
Now the angel of the LORD had commanded Gad to say to David that David should go up and raise an altar to the LORD on the threshing floor of Ornan the Jebusite. So David went up at Gad's word, which he had spoken in the name of the LORD. Now Ornan was threshing wheat. He turned and saw the angel, and his four sons who were with him hid themselves. As David came to Ornan, Ornan looked and saw David and went out from the threshing floor and paid homage to David with his face to the ground. And David said to Ornan, “Give me the site of the threshing floor that I may build on it an altar to the LORD—give it to me at its full price—that the plague may be averted from the people.” Then Ornan said to David, “Take it, and let my lord the king do what seems good to him. See, I give the oxen for burnt offerings and the threshing sledges for the wood and the wheat for a grain offering; I give it all.” But King David said to Ornan, “No, but I will buy them for the full price. I will not take for the LORD what is yours, nor offer burnt offerings that cost me nothing.” So David paid Ornan 600 shekels of gold by weight for the site. And David built there an altar to the LORD and presented burnt offerings and peace offerings and called on the LORD, and the LORD answered him with fire from heaven upon the altar of burnt offering. Then the LORD commanded the angel, and he put his sword back into its sheath.
At that time, when David saw that the LORD had answered him at the threshing floor of Ornan the Jebusite, he sacrificed there. For the tabernacle of the LORD, which Moses had made in the wilderness, and the altar of burnt offering were at that time in the high place at Gibeon, but David could not go before it to inquire of God, for he was afraid of the sword of the angel of the LORD.
(1 Chronicles 21 ESV)
1 Peter 2
So put away all malice and all deceit and hypocrisy and envy and all slander. Like newborn infants, long for the pure spiritual milk, that by it you may grow up into salvation—if indeed you have tasted that the Lord is good.
As you come to him, a living stone rejected by men but in the sight of God chosen and precious, you yourselves like living stones are being built up as a spiritual house, to be a holy priesthood, to offer spiritual sacrifices acceptable to God through Jesus Christ. For it stands in Scripture:
“Behold, I am laying in Zion a stone,
a cornerstone chosen and precious,
and whoever believes in him will not be put to shame.”
So the honor is for you who believe, but for those who do not believe,
“The stone that the builders rejected
has become the cornerstone,”
“A stone of stumbling,
and a rock of offense.”
They stumble because they disobey the word, as they were destined to do.
But you are a chosen race, a royal priesthood, a holy nation, a people for his own possession, that you may proclaim the excellencies of him who called you out of darkness into his marvelous light. Once you were not a people, but now you are God's people; once you had not received mercy, but now you have received mercy.
Beloved, I urge you as sojourners and exiles to abstain from the passions of the flesh, which wage war against your soul. Keep your conduct among the Gentiles honorable, so that when they speak against you as evildoers, they may see your good deeds and glorify God on the day of visitation.
Be subject for the Lord's sake to every human institution, whether it be to the emperor as supreme, or to governors as sent by him to punish those who do evil and to praise those who do good. For this is the will of God, that by doing good you should put to silence the ignorance of foolish people. Live as people who are free, not using your freedom as a cover-up for evil, but living as servants of God. Honor everyone. Love the brotherhood. Fear God. Honor the emperor.
Servants, be subject to your masters with all respect, not only to the good and gentle but also to the unjust. For this is a gracious thing, when, mindful of God, one endures sorrows while suffering unjustly. For what credit is it if, when you sin and are beaten for it, you endure? But if when you do good and suffer for it you endure, this is a gracious thing in the sight of God. For to this you have been called, because Christ also suffered for you, leaving you an example, so that you might follow in his steps. He committed no sin, neither was deceit found in his mouth. When he was reviled, he did not revile in return; when he suffered, he did not threaten, but continued entrusting himself to him who judges justly. He himself bore our sins in his body on the tree, that we might die to sin and live to righteousness. By his wounds you have been healed. For you were straying like sheep, but have now returned to the Shepherd and Overseer of your souls.
(1 Peter 2 ESV)
Something to Consider
1 Chronicles 21: If we're not careful, great success can quickly give birth to great acts of pride. Despite pushback from his close friend and commander (Joab), David decides he would like to take an inventory of how massive his kingdom has become. And while a census may seem like a harmless and subtle thing, in this moment, David had shed his humility in pursuit of his own honor. However, our God loves His people and will not let us get away with such decisions that could eventually lead to our own destruction.
As the Lord's sword is drawn and ready to wield justice upon Jerusalem, God provides David with a way of deliverance from His oncoming wrath. It would require David's repentance, a sacrificial offering upon the altar and a price to be paid for David's sin.
Here in this Old Testament narrative concerning David's ill-advised census, we get a glimpse of God's gospel recipe for atonement, propitiation and salvation. For just as God provided a way of deliverance here for David, He would one day provide the Way of deliverance for all people from His wrathful judgement. Our Father would willingly offer up His Son upon the altar shaped like a cross, and the greatest price imaginable would be paid for our sin. All we have to do is repent and receive this offering through faith.