In time, when men began to multiply on earth, and daughters were born to them,
the sons of God saw that the daughters of men were attractive; and they took wives for themselves, whomever they chose.
ADONAI said, "My Spirit will not live in human beings forever, for they too are flesh; therefore their life span is to be 120 years."
The N'filim were on the earth in those days, and also afterwards, when the sons of God came in to the daughters of men, and they bore children to them; these were the ancient heroes, men of renown.
ADONAI saw that the people on earth were very wicked, that all the imaginings of their hearts were always of evil only.
ADONAI regretted that he had made humankind on the earth; it grieved his heart.
ADONAI said, "I will wipe out humankind, whom I have created, from the whole earth; and not only human beings, but animals, creeping things and birds in the air; for I regret that I ever made them."
But Noach found grace in the sight of ADONAI.
Here is the history of Noach. In his generation, Noach was a man righteous and wholehearted; Noach walked with God.
Noach fathered three sons, Shem, Ham and Yefet.
The earth was corrupt before God, the earth was filled with violence.
God saw the earth, and, yes, it was corrupt; for all living beings had corrupted their ways on the earth.
God said to Noach, "The end of all living beings has come before me, for because of them the earth is filled with violence. I will destroy them along with the earth.
Make yourself an ark of gofer-wood; you are to make the ark with rooms and cover it with pitch both outside and inside.
Here is how you are to build it: the length of the ark is to be 450 feet, its width seventy-five feet and its height forty-five feet.
You are to make an opening for daylight in the ark eighteen inches below its roof. Put a door in its side; and build it with lower, second and third decks.
"Then I myself will bring the flood of water over the earth to destroy from under heaven every living thing that breathes; everything on earth will be destroyed.
But I will establish my covenant with you; you will come into the ark, you, your sons, your wife and your sons' wives with you.
"From everything living, from each kind of living being, you are to bring two into the ark, to keep them alive with you; they are to be male and female.
Of each kind of bird, each kind of livestock, and each kind of animal creeping on the ground, two are to come to you, so that they can be kept alive.
Also take from all the kinds of food that are eaten, and collect it for yourself; it is to be food for you and for them."
This is what Noach did; he did all that God ordered him to do.