"in the presence of Yahweh" or "where Yahweh can see us"
"he will consider us righteous". The word "this" refers to keeping Yahweh's commands.