Thou hast known, i.e. loved me, and cared for me; for words of knowledge commonly imply affection.
Related Commentaries of Psalms 31:7
Psalms 31:7
7 I will be glad and rejoice in thy mercy: for thou hast considered my trouble; thou hast known my soul in adversities;