Verses 5 & 6 are what make this Psalm worshipful instead of just a record of David whining.

Psalm 13:1-2 and Psalm 13:5-6