He was divinely directed for the repentance of the nation, and he took away the abominations of impiety.