1 verses of the American Standard Version have both "please" and "when".
Proverbs 16:7 When a man’s ways please Jehovah, He maketh even his enemies to be at peace with him.
In other translations: KJV WEB YLT Darby Webster DRC Geneva