Moses
Psalm 17:3BSB·traditional attribution

You have tried my heart; You have visited me in the night. You have tested me and found no evil; I have resolved not to sin with my mouth.

John Calvin Reformed @genevareformer

PSALM 17. This psalm contains a mournful complaint against the cruel pride of David’s enemies. He protests that he did not deserve to be persecuted with such inhumanity, inasmuch as he had given them no cause for exercising their cruelty against him. At the same time, he beseeches God, as his protector, to put forth his power for his deliverance.

Commenting on Psalm 17:1-15

C.H. Spurgeon Reformed Baptist @princeofpreachers

"Thou hast proved mine heart." Like Peter, David uses the argument, "Thou knowest all things, thou knowest that I love thee." It is a most assuring thing to be able to appeal at once to the Lord, and call upon our Judge to be a witness for our defence.

Matthew Henry Presbyterian @wholebiblehenry

This psalm is a prayer. As there is a time to weep and a time to rejoice, so there is a time for praise and a time for prayer. David was now persecuted, probably by Saul, who hunted him like a partridge on the mountains; without were fightings, within were fears, and both urged him as a suppliant to the throne of mercy.

Commenting on Psalm 17:1-7