Psa 142:4 I looked on my right hand, and beheld, but there was no man that would know me: refuge failed me; no man cared for my soul.
Psa 142:5 I cried unto thee, O LORD: I said, Thou art my refuge and my portion in the land of the living.
When all slighted him, when none took care of him; what doth David in this case? The words in Psa_142:5 tell us what. I cried unto thee, O LORD: I said, Thou art my refuge and my portion in the land of the living. As if he had said, Upon these unkindnesses, disrespects, and slightings which I found in the world, I took occasion, yea, I was stirred in my spirit to cry unto thee, O Lord, and to say, "Thou art my refuge", that is, then I made thee my refuge more than ever. Having made thee my choice in my best times, when men honoured and embraced me, I am much encouraged in these evil times when men regard me not to shelter my weather beaten self in thy name and power. When we have most friends in the world, then God is our best friend, but when the world hates us, and frowns upon us, especially when (as the prophet speaks of some, Isa_66:5) "our brethren hate us, and cast us out for the name's sake of God himself", saying, "Let the Lord be glorified", when 'tis thus with us (I say) our souls are even forced into the presence of God, to renew our interests in his love, and to assure our souls that we are accepted with him. —Joseph Caryl.
(Treasury of David _ Charles Spurgeon)
May it strengthen you dear friend!