He was loyal to the Lord and never turned away from him. He obeyed the commands that the Lord had given through Moses,