David was known as a man after God’s own heart, and in this prayer we see him understanding that God examines the heart to determine the essential character of a person…especially integrity. For David knew that the Lord took delight in those who conducted themselves in a upright, just, and fair manner towards others.