Moses wrote book of Genesis and other books in the Bible?

How did he know what to write he he was not an eye witness to all these event took place ?

Did some one (tradition / culture ) told him the story and he decided to write them down ? or was there already a written document that he read and learned from ???

I know some say spirit spoke to him. LOL
16 answers 16