2. It may be understood of David's mercy and judgment; he would, in this psalm, promise to be merciful, and just, or wise, for judgment is often put for discretion. To do justly and love mercy is the sum of our duty; these he would covenant to make conscience of in that place and relation to which God had called him and this in consideration of the various providences of God that had occurred to him. Family-mercies and family-afflictions are both of them calls to family-religion. David put his vow into a song or psalm, that he might the better keep it in his own mind and frequently repeat it, and that it might the better be communicated to others and preserved in his family, for a pattern to his sons and successors.