“And David said unto God, Is it not I that commanded the people to be numbered? even I it is that 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.”
King James Version (KJV)
Matthew Henry's Concise Commentary
21:1-30 David's numbering the people. - No mention is made in this book of David's sin in the matter of Uriah, neither of the troubles that followed it: they had no needful connexion with the subjects here noted. But David's sin, in numbering the people, is related: in the atonement made for that sin, there was notice of the place on which the temple should be built. The command to David to build an altar, was a blessed token of reconciliation. God testified his acceptance of David's offerings on this altar. Thus Christ was made sin, and a curse for us; it pleased the Lord to bruise him, that through him, God might be to us, not a consuming Fire, but a reconciled God. It is good to continue attendance on those ordinances in which we have experienced the tokens of God's presence, and have found that he is with us of a truth. Here God graciously met me, therefore I will still expect to meet him.
“O LORD of hosts, God of Israel, that dwellest between the cherubims, thou art the God, even thou alone, of all the kingdoms of the earth: thou hast made heaven and earth.”