in his early years he was an analphabetic and a shepherd boy , but he was given some education later on by certain members of his family and eventually declared himself at the age of forty or thereabouts to be a prophet of allah , as the islamic god is called .