Whom have I in heaven but thee? and there is none upon earth that I desire beside thee.
-His joy in God as his portion, in contrast to the final destruction of all who go from God.
Verse 25. Whom have I in heaven (but thee)? and (there is) none upon earth that I desire besides thee - in juxtaposition with thee. "But thee," or "besides thee," has to be supplied in the first from the second clause. Thou art my supreme good (Song of Solomon 5:10). The context implies, 'Whom have I that I desire in juxtaposition with thee' as a Saviour?
Verse 26. My flesh and my heart falleth: but God is the strength of my heart - Hebrew, 'the rock of my heart;' i:e. hypothetically, 'whensoever my heart (regarded as the seat of life) and my flesh fail, God is the rock of my heart' (Psalms 18:1-2; Job 19:25-27).
And my portion for ever - (Lamentations 3:24.)
Verse 27. For, lo, they that are far from thee shall perish: thou hast destroyed all them that go awhoring from thee. All spiritual estrangement from God, whether by idolatry or covetousness, is 'whoredom' (Leviticus 20:6; Numbers 14:33).
Verse 28. But (it is) good for me to draw near to God - literally, 'But I ... nearness to God is good for me' as opposed to "they that are far from thee" (Psalms 73:27; James 4:8; Zephaniah 3:2). "It is good, for it brings with it salvation, as contrasted with the destruction of those far from God.
I have put my trust in the Lord God, that I may declare all thy works - i:e., that, being preserved by thee, I may have thereby occasion given me to "declare all thy works" of deliverance.