Proverbs 12:2 in the King James Version
A good man obtaineth favour of the LORD: but a man of wicked devices will he condemn.
Context
1 Whoever loves correction loves knowledge, but he who hates reproof is stupid.
2 A good man shall obtain favor from the LORD, but he will condemn a man of wicked plans.
3 A man shall not be established by wickedness, but the root of the righteous shall not be moved.