Psalm 6 is a prayer of lament—an expression of grief or sorrow. Towards the end of the prayer, David expresses confidence in the Lord. When we are in the midst of hardships in life it is OK to lament however, we should always trust in God's steadfast love.