4. He appeals to God concerning his own sincerity in what he did, v. 17. It is a great satisfaction to a good man to think that God tries the heart and has pleasure in uprightness, that, whoever may misinterpret or contemn it, he is acquainted with and approves of the way of the righteous. It was David's comfort that God knew with what pleasure he both offered his own and saw the people's offering. He was neither proud of his own good work nor envious of the good works of others.