And Satan stood up against Israel, and provoked David to number Israel.
And David said to Joab and to the rulers of the people, "Go, number Israel from Beersheba even to Dan, and bring the number of them to me, that I may know it."
And Joab answered, "The LORD make His people a hundred times more than they are. But, my lord the king, are they not all my lord's servants? Why then doth my lord require this thing? Why will he be a cause of trespass to Israel?"
Nevertheless the king's word prevailed against Joab. Therefore Joab departed, and went throughout all Israel and came to Jerusalem.
And Joab gave the sum of the number of the people unto David. And all they of Israel were a thousand thousand and a hundred thousand men who drew the sword, and Judah was four hundred threescore and ten thousand men who drew the sword.
But Levi and Benjamin he counted not among them, for the king's word was abominable to Joab.
And God was displeased with this thing; therefore He smote Israel.
And David said unto God, "I have sinned greatly because I have done this thing. But now, I beseech Thee, do away with the iniquity of Thy servant, for I have done very foolishly."
And the LORD spoke unto Gad, David's seer, saying,
"Go and tell David, saying, `Thus saith the LORD: I offer thee three things. Choose thee one of them, that I may do it unto thee.'"
So Gad came to David, and said unto him, "Thus saith the LORD: `Choose thee
either three years' famine; or three months to be destroyed before thy foes while the sword of thine enemies overtaketh thee; or else three days the sword of the LORD, even the pestilence in the land and the angel of the LORD destroying throughout all the coasts of Israel.' Now therefore advise thyself what word I shall bring back to Him that sent me."
And David said unto Gad, "I am in dire straits. Let me fall now into the hand of the LORD, for very great are His mercies; but let me not fall into the hand of man."
So the LORD sent pestilence upon Israel, and there fell of Israel seventy thousand men.
And God sent an angel unto Jerusalem to destroy it; and as he was destroying, the LORD beheld, and He repented of the evil, and said to the angel who destroyed, "It is enough. Stay now thine hand." And the angel of the LORD stood by the threshing floor of Ornan the Jebusite.
And David lifted up his eyes and saw the angel of the LORD standing between the earth and the heaven, having a drawn sword in his hand stretched out over Jerusalem. Then David and the elders of Israel, who were clothed in sackcloth, fell upon their faces.
And David said unto God, "Is it not I that commanded the people to be numbered? Even I it is who have sinned and done evil indeed; but as for these sheep, what have they done? Let Thine hand, I pray Thee, O LORD my God, be on me and on my father's house, but not on Thy people, that they should be plagued."
Then the angel of the LORD commanded Gad to say to David that David should go up and set up an altar unto the LORD on the threshing floor of Ornan the Jebusite.
And David went up at the saying of Gad, which he spoke in the name of the LORD.
And Ornan turned back and saw the angel, and his four sons with him hid themselves. Now Ornan was threshing wheat.
And as David came to Ornan, Ornan looked and saw David, and went out from the threshing floor and bowed himself to David with his face to the ground.
Then David said to Ornan, "Grant me the place of this threshing floor, that I may build an altar therein unto the LORD. Thou shalt grant it to me for the full price, that the plague may be stayed from the people."
And Ornan said unto David, "Take it to thee, and let my lord the king do that which is good in his eyes. Lo, I give thee the oxen also for burnt offerings, and the threshing instruments for wood, and the wheat for the meat offering; I give it all."
And King David said to Ornan, "Nay, but I will verily buy it for the full price; for I will not take that which is thine for the LORD, nor offer burnt offerings without cost."
So David gave to Ornan for the place six hundred shekels of gold by weight.
And David built there an altar unto the LORD, and offered burnt offerings and peace offerings, and called upon the LORD; and He answered him from heaven by fire upon the altar of burnt offering.
And the LORD commanded the angel, and he put up his sword again into the sheath thereof.
At that time when David saw that the LORD had answered him on the threshing floor of Ornan the Jebusite, then he sacrificed there.
For the tabernacle of the LORD, which Moses made in the wilderness, and the altar of the burnt offering were at that season at the high place at Gibeon.
But David could not go before it to inquire of God, for he was afraid because of the sword of the angel of the LORD.