1 A heavenly Adversary arose against Israel and incited David to count Israel.
2 So David told Joab and the leaders of the people, "Go throughout all the tribes of Israel, from Dan to Beer-sheba, and take a census of the people so I know how many people there are."
3 But Joab replied, "May the Lord increase his people a hundred times! Sir, aren’t you the king, and aren’t they all your servants? Why do you want to do this? Why bring guilt on Israel?"
4 But the king overruled Joab, who left and traveled throughout all Israel. When he returned to Jerusalem,
5 he reported to David the total number: there were 1,100,000 men available for military service in all Israel, while Judah alone had 470,000.
6 He didn’t include Levi and Benjamin among them, because Joab disagreed with the king’s order.
7 God was offended by this census and punished Israel.
8 Then David said to God, "I have sinned greatly in what I have done! Now please take away the guilt of your servant because I have done something very foolish."
9 The Lord told Gad, David’s seer:
10 Go and tell David, This is what the Lord says: I’m offering you three punishments. Choose one of them, and that is what I will do to you.
11 When Gad came to David, he said to him, "This is what the Lord says: Take your choice:
12 three years of famine, three months of fleeing from your enemies while your enemies’ sword overtakes you, or three days of the Lord’s sword, that is, plague in the land and the Lord’s messenger bringing disaster in every part of Israel. Decide now what answer I should take back to the one who sent me."
13 "I’m in deep trouble," David said to Gad. "I’d rather fall into the hands of the Lord, who is very merciful; don’t let me fall into human hands."
14 So the Lord sent a plague throughout Israel, and seventy thousand Israelites fell dead.
15 Then God sent a messenger to Jerusalem to destroy it. But just as the messenger was about to destroy it, the Lord looked and changed his mind about the destruction. He said to the messenger who was destroying it, "That’s enough! Withdraw your hand!" At that time the Lord’s messenger was standing near the threshing floor of Ornan the Jebusite.
16 When David looked up, he saw the Lord’s messenger stationed between the earth and the sky with a drawn sword in his hand stretched out against Jerusalem. Then David and the elders, dressed in mourning clothes, fell on their faces;
17 and David said to God, "Wasn’t it I who ordered the numbering of the people? I’m the sinner, the one responsible for this evil. But these sheep—what have they done? Lord, my God, turn your hand against me and my household, but spare your people from the plague."
18 The Lord’s messenger ordered Gad to tell David that he should go up to the threshing floor of Ornan the Jebusite in order to set up an altar for the Lord.
19 So David went up, following the instructions Gad had delivered in the Lord’s name.
20 Ornan turned around and saw the king. His four sons who were with him hid themselves, but Ornan continued threshing wheat.
21 When David approached Ornan, Ornan looked up, recognized David, left the threshing floor, and bowed to David with his face to the ground.
22 David said to Ornan, "Give me the site of the threshing floor, charging me full price, so that I may build an altar to the Lord, and the plague among the people may come to an end."
23 Ornan replied to David, "Take it for yourself, and may my master the king do what he thinks is best. I’ll even provide the oxen for the entirely burned offerings, the threshing boards for wood, and the wheat for the grain offering—I’ll provide everything!"
24 But King David said to Ornan, "No, I will buy them from you at a fair price. I won’t offer to the Lord what belongs to you nor offer an entirely burned offering that costs me nothing."
25 Then David gave Ornan six hundred shekels of gold by weight for the site.
26 David built an altar there for the Lord and offered entirely burned offerings and well-being sacrifices. He called on the Lord, who answered him with fire from heaven on the altar of the entirely burned offering, consuming the entirely burned offering.
27 Then the Lord commanded the messenger to return his sword to its sheath.
28 At that time, after David saw that the Lord had answered him at the threshing floor of Ornan the Jebusite, he offered sacrifices there.
29 The Lord’s dwelling that Moses had made in the desert and the altar for entirely burned offerings were then at the shrine in Gibeon,
30 but David couldn’t go there to seek God because he feared the sword of the Lord’s messenger.