*Minor differences ignored. Grouped by changes, with first version listed as example.
This gate of the Lord - This gate dedicated to the service of the Lord; that belongs to the house of the Lord.
Into which the righteous shall enter - Through which the righteous pass. That is, It is for such persons, and all who come with a purpose to serve and worship God should be permitted to pass through them; I claim the privilege, therefore, of so passing through these gates into the house of God, for I come to praise him. All who are truly righteous, all who desire to worship God, all who wish and purpose to be holy, have a right thus to enter the house of God - to be recognized as his friends - to be permitted to join in all the devotions of his people; all such will have a right to enter the temple above. None have a right to exclude them here; none in heaven will be disposed to exclude them there.
This gate of the Lord - Supposed to be the answer of the Levites to the request of the king.
This gate of the Lord, into which the righteous shall enter. This seems to be spoken by some other person or persons, distinct from David and the Messiah, pointing at some particular and principal gate, upon hearing the above word: by which is meant, not the gate of the house of the sanctuary of the Lord, as the Targum; but the Messiah himself, afterwards spoken of as the stone rejected by the builders, and made the head of the corner; who is the way of access to God; the door into the church or sheepfold; the strait gate that leads to eternal life; by which none but righteous persons enter into heaven; even such who are made righteous, through the imputation of his righteousness to them; see John 10:1.
The righteous - As David was a type of Christ and the temple of heaven, so this place hath a farther prospect than David, and relates to Christ's ascending into heaven, and opening the gates of that blessed temple, both for himself and for all believers.
*More commentary available at chapter level.