To the conductor: a melody of David.1In you, O LORD, I have taken refuge; let me never be put to shame; deliver me in your righteousness.2Incline your ear to me; rescue me quickly; be to me a rock of security, a house of fortresses, to save me.3For you are my rock and my fortress; for the sake of your name lead me and guide me.4Pull me out of the net that they hid for me, for you are my security.5Into your hand I commit my spirit; you have redeemed me, O LORD, faithful God.6I hate those who keep worthless idols, but I trust in the LORD.7I will be glad and rejoice in your steadfast love, because you have seen my affliction; you have known the distresses of my soul.8You have not handed me over to the enemy; you have set my feet in the broad place.9Be gracious to me, O LORD, for I am in distress; my eye wastes away with vexation, as do my soul and my belly.10For my life is spent with sorrow and my years with sighing; my strength fails because of my iniquity, and my bones waste away.11Because of all my vexers I have become a reproach, especially to my neighbors, and an object of dread to my acquaintances; those who see me outside flee from me.12I am forgotten like one who is dead, out of mind; I have become like a vessel that perishes.13For I hear the slander of many—terror from around!—as they are banded together against me, to take my life they have plotted.14But I trust in you, O LORD; I say, 'You are my God.'15My times are in your hand; rescue me from the hand of my enemies and from my pursuers.16Make your face shine on your servant; save me in your steadfast love.17O LORD, let me not be put to shame, for I have called to you; let the wicked be put to shame; let them go silently to Sheol.18Let the lying lips be mute that speak arrogantly against the righteous with pride and contempt.19How abundant is your goodness that you have stored up for those who fear you, and worked for those who take refuge in you, in the sight of the children of man.20You hide them in the secrecy of your face from the conspiracies of man; you treasure them in a booth from the strife of tongues.21Blessed be the LORD, for he has wondrously shown his steadfast love to me in a besieged city.22And I had said in my hurrying, 'I am cut off from before your eyes,' but you heard the voice of my supplications when I cried to you.23Love the LORD, all you his pious ones; the LORD preserves the faithful and repays upon the remainder the one who does pride.24Be strong and let your heart take courage, all you who wait for the LORD.