Psalm 7:17 – I will give the Lord thanks due to his righteousness, and I will sing praise to the name of the Lord, the Most High.
David is taking refuge from his enemy and his sufferings in the Lord. David knows that unless a man repents he will fall to his own evil and face the wrath of a righteous God. In the final verse of the Psalm, David give thanks to God for He is righteous by praising Him in song as He is the Lord Most High!
As a believer and follower of Christ, I need to take shelter and refuge in Jesus always during good times and bad. This is especially evident in times of trouble when suffering. Jesus is our deliverer when we repent and place our faith and trust in His finished work on the cross. There is a Great Day coming when Jesus returns as the ultimate judge and every knee will bow. For the saints there will be no more pain or tears. I must be thankful to God every day and praise His name as He is the only one holy, deserving of praise.
Let me love you and give thanks to you for everything! You are the only one worthy and deserving of praise!