Be of good courage, and he shall strengthen your heart
(See Gill on Psalms 27:14); by this instance of God's wonderful kindness to the psalmist, he would have the saints take heart, and be of good cheer, even in the greatest distresses, since their case cannot be worse than his was; and yet he had deliverance out of it;
all ye that hope in the Lord;
for the eye of the Lord is on such, and he takes delight in them, ( Psalms 33:18 ) ( 147:11 ) . The Targum is, "who hope for", or "trust in the word of the Lord"; the essential Word, the promised Messiah.