"Suppose there is a righteous man who does what is just and right." (NIV)
But if a man is [uncompromisingly] righteous (upright and in right standing with God) and does what is lawful and right (AMP)
But if a man be just, and do that which is lawful and right, (KJV)