I will be glad and rejoice in your love, for you saw my affliction and knew the anguish of my soul. (NIV)
I will be glad and rejoice in Your mercy and steadfast love, because You have seen my affliction, You have taken note of my life's distresses (AMP)
I will be glad and rejoice in thy mercy: for thou hast considered my trouble; thou hast known my soul in adversities; (KJV)