With whom took he counsel, that he gave him understanding, and taught him the path of justice, and taught him knowledge, and caused him to know the way of understanding?