One of God"s functions as Judge is to vindicate the righteous and condemn the guilty. David called on Him to do so in his case. To vindicate means to show a righteous person to be righteous when others have accused him or her of being wicked. It is fitting for God to establish the righteous and to destroy the wicked because He is righteous Himself. [source][source][source]