John Gill's Exposition of the Whole Bible
Psalms 68:5
A father of the fatherless,.... In a literal sense, so as to show mercy to them, take care of then, and protect them; and this is a character which the great God often assumes, partly to express his power and providence over such, and partly to signify his tenderness, mercy, and goodness to them; and in which he should be imitated by civil magistrates, and by all good men: for it was not only a law in Israel to show regard to such, and take care not to afflict them, but it is also a branch of pure undefiled Christian religion, James 1:27, in attending to which we resemble the great Author of it, who is here intended. Moreover, this may be understood in a spiritual sense of such who are deserted by their friends, or are called to leave father and mother for the sake of Christ and his Gospel; and who are like fatherless ones, in an helpless condition in themselves, and are sensible of it; and will not trust in the creature, nor in any works of their own, but apply to Christ, where they have help and salvation, in whom the fatherless find mercy, Hosea 14:3; and who afterwards, when they are without the presence of Christ, and sensible communion with him, are like orphans or fatherless children; but Christ, who is the father of such, will not leave them so, will have pity on them, show favour to them, provide everything needful for them, and will come and visit them, as in John 14:18; where the word "orphans" or "fatherless" is used of Christ's disciples;
and a Judge of the widows; of such who are widows indeed in a literal sense, and especially that are believers, his elect that cry unto him; see Luke 18:2; and of such who are so in a spiritual sense; even of the whole church of Christ, who may, even now, be said to be in a widowhood estate, as well as under the former dispensation; since Christ, her bridegroom, is gone to heaven, and who yet, in the mean time, is her Judge, protector, and defender; and when she is made ready for him, as a bride adorned for her husband, will come and take her to himself, and she shall remember the reproach of her widowhood no more,
[is] God in his holy habitation: in heaven, the habitation of his holiness, where is Christ the high and Holy One; and has respect to the poor and lowly, the fatherless and the widow: or in his church, his holy temple, where he dwells and walks, and grants his gracious presence, and will do to the end of the world, according to his promise; or in his holy human nature, the temple and the tabernacle, in which the Godhead dwells.