John Gill's Exposition of the Whole Bible
Psalms 112:4
Unto the upright there ariseth light in the darkness,.... Upright ones are sometimes in the darkness of affliction, under divine desertions, without spiritual joy, and in an uncomfortable condition; when on a sudden light arises to them, like break of day, or the morning light: they have deliverance from affliction, and enjoy prosperity; the light of God's countenance is lifted up on them; the sun of righteousness arises upon them with healing in his wings; and spiritual joy and comfort are communicated unto them. It may denote the comforts the people of God have amidst their afflictions and troubles, even while they are in them; and the light they enjoy, while darkness is round about others, like the children of Israel in Egypt: or the suddenness of deliverance from adversity, temporal or spiritual; weeping endures for a night, joy comes in the morning, and at evening time it is light, Psalms 30:5.
He is gracious, and full of compassion, and righteous; that is, the Lord is so. Thus the Arabic version,
"the Lord God is merciful and bountiful;''
and the Ethiopic version,
"merciful and compassionate is the Lord, and righteous is our King.''
And because God is the God of all grace, and is able to make it abound to his people, and is compassionate to them in distress, and is just and faithful to his promises; therefore he causes light to arise to them in darkness; and which, on such account, they may believe and expect; see Micah 7:8. Some understand this of the upright man and of his character; that he is "gracious", kind, and bountiful; that he is "full of compassion", tenderhearted, and shows mercy to distressed objects; and is righteous, through Christ, and lives soberly and righteously. This sense agrees both with what goes before, and follows after.