A bit off topic, but this is a very tricky question to answer. The traditional answer is Moses, ca. 1200 BC. The real answer would take many PhD theses to arrive at. It's really a process that took place between the 10th and 5th centuries BC (and arguably continued even much later than that).