16 But when the angel stretched out his hand toward Jerusalem to destroy it, the Lord relented concerning the evil, and said to the angel who was bringing destruction among the people, "It is enough; now stay your hand." The angel of the Lord was then by the threshing floor of Araunah the Jebusite. 17 When David saw the angel who was destroying the people, he said to the Lord, "I alone have sinned, and I alone have done wickedly; but these sheep, what have they done? Let your hand, I pray, be against me and against my father's house."

18 That day Gad came to David and said to him, "Go up and erect an altar to the Lord on the threshing floor of Araunah the Jebusite." 19 Following Gad's instructions, David went up, as the Lord had commanded. 20 When Araunah looked down, he saw the king and his servants coming toward him; and Araunah went out and prostrated himself before the king with his face to the ground. 21 Araunah said, "Why has my lord the king come to his servant?" David said, "To buy the threshing floor from you in order to build an altar to the Lord, so that the plague may be averted from the people." 22 Then Araunah said to David, "Let my lord the king take and offer up what seems good to him; here are the oxen for the burnt offering, and the threshing sledges and the yokes of the oxen for the wood. 23 All this, O king, Araunah gives to the king." And Araunah said to the king, "May the Lord your God respond favorably to you." 24 But the king said to Araunah, "No, but I will buy them from you for a price; I will not offer burnt offerings to the Lord my God that cost me nothing." So David bought the threshing floor and the oxen for fifty shekels of silver. 25 David built there an altar to the Lord, and offered burnt offerings and offerings of well-being. So the Lord answered his supplication for the land, and the plague was averted from Israel.

Matthew Henry's Commentary on 2 Samuel 24:16-25

Commentary on 2 Samuel 24:16-17

(Read 2 Samuel 24:16-17)

Perhaps there was more wickedness, especially more pride, and that was the sin now chastised, in Jerusalem than elsewhere, therefore the hand of the destroyer is stretched out upon that city; but the Lord repented him of the evil, changed not his mind, but his way. In the very place where Abraham was stayed from slaying his son, this angel, by a like countermand, was stayed from destroying Jerusalem. It is for the sake of the great Sacrifice, that our forfeited lives are preserved from the destroying angel. And in David is the spirit of a true shepherd of the people, offering himself as a sacrifice to God, for the salvation of his subjects.

Commentary on 2 Samuel 24:18-25

(Read 2 Samuel 24:18-25)

God's encouraging us to offer to him spiritual sacrifices, is an evidence of his reconciling us to himself. David purchased the ground to build the altar. God hates robbery for burnt-offering. Those know not what religion is, who chiefly care to make it cheap and easy to themselves, and who are best pleased with that which costs them least pains or money. For what have we our substance, but to honour God with it; and how can it be better bestowed? See the building of the altar, and the offering proper sacrifices upon it. Burnt-offerings to the glory of God's justice; peace-offerings to the glory of his mercy. Christ is our Altar, our Sacrifice; in him alone we may expect to escape his wrath, and to find favour with God. Death is destroying all around, in so many forms, and so suddenly, that it is madness not to expect and prepare for the close of life.