According to the documentary hypothesis, these various sources were woven together to create the Pentateuch.