V.1-8 But David is exposed to temptations of Satan through his prosperity. He wants to know how strong he is, so he orders all the people to be counted. But in doing this, he forgets the strength of God. We need to learn our weakness and rely only on His strength (2 Cor. 12:9-10).
V.9-17 The Lord loves David too much to let this pass unnoticed. But, as usual, out of the punishment comes blessing. For us, it is ever the same. David really knew the Lord well, though for a moment he forgets. But when he gets back his understanding, he chooses to fall into the hand of the Lord, rather than to hope for any mercy from his enemies (v. 13). A grand lesson for us to learn too.
V.18-30 God turns our hearts to brighter things. God uses David to be the one who selects the spot for the altar. This is to be the place of Solomon’s glorious temple! (2 Chron. 3:1). This was to open a new day for Israel in their relationship with God. But notice that the foundation of all this was the offering of sacrifices (v. 26).
V.27 The plague is stopped immediately. Of course you realize that this is pointing onward to Christ. The judgment for our sins fell upon Christ. But immediately the work was done, we were free from punishment (Heb. 10:1414For by one offering he hath perfected for ever them that are sanctified. (Hebrews 10:14)).