You mean to say that if my ways please God, I will never have an enemy? That is how too many people view this proverb. But the proverb itself assumes that we will have enemies when we are walking with the Lord. Then what does this proverb mean - and how can we know when God has done this on our behalf.
This passage teaches us that when our ways are pleasing to God that God does some wonderful things in our lives. He takes those who are our enemies and makes them to be at peace with us. It does not mean that we don't have enemies, it means that they are at peace with us instead of warring or seeking to destroy us. They may still be our enemy, but they will choose peace rather than to be in open conflict with us.
The stories of this are many in our society. J. Vernon McGee speaks of a man who hated him, but who was heard saying to others, "I hate the man, but he preaches the Word of God." That kind of thing is what this proverb is saying to us. The world will continue to hate us - but due to our lives being pleasing to God, they will see godly character in our lives. I know of situations where the ungodly came to the aid of believers not because they agreed with our theology or teaching, but simply because they knew the character of the person and vouched for them.
Let me take a moment here and say something about what this points to in the human condition. Why would the world be at peace with us when we choose God's ways? In fact, why should God's ways even be viewed positively? Ever wonder why our world values things like peace and joy and what we call good character? Think about it for a moment. Why, if we are supposed to be the result of survival of the fittest, do we not value a more cut throat kind of existance? Why would we value the weakest - and embrace values that would allow others to take advantage of us? Why shouldn't we value the thief and the one who crushes all others on his climb to the top? These should be things we value and admire if we are simply a process of evolutionary processes. Why shouldn't we admire Adolf Hitler and even thank him for trying to get rid of the more errant DNA in our worldwide gene pool? The truth is that we don't admire these things - we consider them evil and wrong - even among the most ardent evolutionists. Even thsoe who live this way have mighty struggles with their own behavior - somehow just knowing deep within themselves that they are not living right. But I want to ask this incredibly important question, "Who told them this?" The answer, though the world hates it, is in the Bible itself. Romans 2 speaks of the way that our conscience works in either approving and condemning our actions and attitudes. This is the mark of God in our world. It is the hidden proof that we are His workmanship - we are His creation. His original design - though badly marred by sin - still is written on our hearts. We may try to sear it from our memories and ignore it in our actions, but it still remains deeply written within us. When the ungodly are at peace with us due to our choice to act on God's character-transforming Word - it is only a testimony to this very spiritual DNA that is a remnant of His creative work before the fall.
God does not promise we won't have enemies. In fact just the opposite is told to us. If we desire to live godly in Christ Jesus, we will suffer persecution. Jesus faced enemies that desired and conspired to put Him to death. To say that God promises a carte blanche freedom from having enemies is to say that Jesus did not please the Father - and evidently His ways were not pleasing to God. Nothing could be further from the truth. God does not promise freedom from enemies - He promises that when we do have them - He will choose to even make our enemies to be at peace with us. This is why we should choose the wisdom of God's ways and walk in them. There is a desirable-ness in how we live. There is an honesty - a joy - a freedom - a peace that will make even our enemies say good things about us. When this happens, we can know that God in His grace has worked in our lives - taking even those who oppose us - and making them testify of His grace that works in us when our ways are pleasing to Him.