118:19the gates of righteousness. The entrance to the sanctuary, leading to the presence of God, where the psalmist will offer thanks. The gates are righteous because the One who dwells behind them is righteous, and those who enter must be righteous as well (Ps. 15 and 24).