We may observe, in these verses: I. What David prays for. Being compassed about with enemies that sought his life, he prays to God to preserve him safely through all their attempts against him, to the crown to which he was anointed. This prayer is both a prediction of the preservation of Christ through all the hardships and difficulties of his humiliation, to the glories and joys of his exalted state, and a pattern to Christians to commit the keeping of their souls to God, trusting him to preserve them to his heavenly kingdom. He prays: 1. That he himself might be protected (Psalm 17:8): "Keep me safe, hide me close, where I may not be found, where I may not be come at. Deliver my soul, not only my mortal life from death, but my immortal spirit from sin." Those who put themselves under God's protection may in faith implore the benefit of it. (1.) He prays that God would keep him, [1.] With as much care as a man keeps the apple of his eye with, which nature has wonderfully fenced and teaches us to guard. If we keep God's law as the apple of our eye (Proverbs 7:2), we may expect that God will so keep us for it is said concerning his people that whoso touches them touches the apple of his eye, Zechariah 2:8. [2.] With as much tenderness as the hen gathers her young ones under her wings with Christ uses the similitude, Matthew 23:37. "Hide me under the shadow of thy wings, where I may be both safe and warm." Or, perhaps, it rather alludes to the wings of the cherubim shadowing the mercy-seat: "Let me be taken under the protection of that glorious grace which is peculiar to God's Israel." What David here prays for was performed to the Son of David, our Lord Jesus, of whom it is said (Isaiah 49:2) that God hid him in the shadow of his hand, hid him as a polished shaft in his quiver. (2.) David further prays, "Lord, keep me from the wicked, from men of the world," [1.] "From being, and doing, like them, from walking in their counsel, and standing in their way, and eating of their dainties." [2.] "From being destroyed and run down by them. Let them not have their will against me let them not triumph over me." -Matthew Henry #Psalm17 #ServingJesusChrist #AppleOfEye