16:9-10 Evidently David had received a special revelation from the Lord that he would not die then but would escape from whatever distress he was enduring (cf. v. 7a). The phrase "my glory rejoices"(NASB) means David rejoiced that his glory as a living person blessed by God would continue to be a source of joy for him. God would spare his life. Of course, David did not mean he would live forever. He only meant that he would not die then. David was God's "holy one"(v. 10) in that God had set him apart for a special purpose and because his life was indeed God's as he described earlier in this psalm.
The Apostle Paul referred to verse 10 as a messianic prophecy of Jesus Christ's resurrection (Acts 13:35).
16:11 The psalmist counted on God giving him further revelation about what path to take so he would experience life rather than death. This path would take him eventually into God's presence where David's joy would be complete. Endless pleasures would come from God's right hand (cf. v. 8b).
"The refugee of verse I find himself an heir, and his inheritance beyond all imagining and all exploring."52
Peter and Paul saw in verses 8-11 and in verse 10b respectively prophecies concerning the resurrection of Jesus Christ (cf. Acts 2:25-28; 13:35-37). What David was confident God would do for him, namely deliver him from death, was what God also did for David's greatest son, the Lord Jesus. In David's case God did this by postponing his death, but in Jesus' case He did it by resurrecting Him. What David was confident God would do for him God also did for Christ only in a different way.
As Christians reading this psalm today we too can rejoice as David did that the Lord will preserve those who take refuge in Him. He will even deliver us from death, perhaps by prolonging our lives temporarily as He did in David's case, but definitely by resurrecting us as He did Jesus Christ (cf. 1 Cor. 15:20; 2 Cor. 5:8; Phil. 1:23).