they tell the tale of the ancient people of israel from the creation of the world , through the great flood , the exodus from egypt , the wanderings in the desert , to the giving of the law to moses at sinai .