This was said Proverbs 16:2, where it is explained, and is here repeated, either for the great importance and usefulness of it, or because he perceived that the Israelites were very prone to self-deceit.
Related Commentaries of Proverbs 21:2
Proverbs 21:2
2 Every way of a man is right in his own eyes: but the LORD pondereth the hearts.