Introduction to Psalm 17
A Prayer of David. This prayer was put up by David either in his own person, on his own account, praying to God for the vindication of his cause, and for salvation and deliverance from his enemies; or in the person of the Messiah, whose type he was, and of the whole church, so Jerom of old interpreted it; and the title of it in the Arabic version is,
"a prayer in the person of a perfect man, and of Christ himself, and of everyone that is redeemed by him;''
in which preservation and protection are prayed for, and hope of eternal life is expressed. It was written, according to Theodoret, when David suffered persecution from Saul.