They were both righteous in the sight of God, walking blamelessly in all the commandments and requirements of the Lord.
(New American Standard Bible)
And they were both righteous before God, walking in all the commandments and ordinances of the Lord blameless.
(King James Version)