These two phrases mean basically the same thing and are used together to emphasize that he obeyed Yahweh.