Psalm 17 is the 17th psalm from the Book of Psalms.
Charles and Emilie Briggs summarize this psalm as follows: "Ps[alm] 17 is a prayer for divine interposition in behalf of the righteous (v. 1-7). The psalmist has been tested by God in mind and conduct and approved (v. 3-4a); he has kept the divine ways and avoided wicked deeds (v. 4b-5), therefore he invokes God with confidence (v. 6a). He prays again that his Saviour may show kindness and keep him as the pupil of the eye (v. 6b-8a); that he may be sheltered from his greedy and arrogant enemies (v. 8b-10), who surround him to prey upon him (v. 11-12). Again he prays for divine interposition and deliverance by the slaying of the wicked (v. 13-14a); that penalty may be visited on them to the third generation, but that he himself may enjoy the divine presence (v. 14b-15)."
The Briggses believed Psalm 17 to have been written in the Persian period, after Zerubbabel but before Ezra's reforms, possibly by the same author as Psalm 16.