What does Psalm 51:11 mean?
Undoubtedly David recalled that the Lord had removed His Spirit from King Saul, David's predecessor (1 Samuel 16:14). He did not want the same thing to happen to him, so he prayed: "Cast me not away from your presence." As the writer of Psalm 23, the Shepherd Psalm, David had been keenly aware of the Lord's constant presence. He wrote that he would fear no evil even in the valley of the shadow of death because the Lord was with him. However, sin had destroyed David's steadfast assurance of the Lord's presence, so he asked the Lord not to cast him away from His presence.David also asked the Lord not to remove His Holy Spirit from him. In Old Testament times the Spirit often came upon believers and left them later on. New Testament believers, in contrast, have the assurance that the Holy Spirit lives in them forever (John 14:15–18; Ephesians 1:13–14). Nevertheless, New Testament believers may grieve the Holy Spirit (Ephesians 4:30–32), lie to him (Acts 5:1–3), and even quench his influence (1 Thessalonians 5:19).
Psalm 51:8–15 express David's prayer for renewed joy, a clean heart, and a renewed spirit. This comes after confessing his sins in the prior passage. David also asks the Lord to restore his testimony so that he might teach transgressors the ways of God and lead sinners back to Him. David wants to praise the Lord joyfully.
This psalm opens with David's plea to God to show him mercy. He asks God to blot out his transgressions, wash his iniquities, and cleanse him from sin. He admits his sinning was against God. He also confesses his human sin nature. David asks God to make him as white as snow by purging him with hyssop. He longs for joy to return to him, but knows he was suffering because God had turned away from him. He pleads with God for a clean heart and a right spirit. He does not want God to cast him aside and remove His Holy Spirit. David longs for a renewal of the joy of his salvation. If cleansing from sin occurred and joy returned to him, David would teach transgressors God's ways, and sinners would be converted. He promises near the end of the psalm to declare God's praise if God would forgive him. He knew it would be futile to offer a sacrifice to God, because God delights in a broken and contrite heart and not in sacrifices offered with an unrepentant heart. David closes the psalm with a prayer for God to bless Jerusalem.