The LORD saw that humanity had become thoroughly evil on the earth and that every idea their minds thought up was always completely evil.
References for Genesis 6:5
The LORD regretted making human beings on the earth, and he was heartbroken.
So the LORD said, "I will wipe off of the land the human race that I've created: from human beings to livestock to the crawling things to the birds in the skies, because I regret I ever made them."
But as for Noah, the LORD approved of him.
These are Noah's descendants. In his generation, Noah was a moral and exemplary man; he walked with God.
References for Genesis 6:9
Noah had three sons: Shem, Ham, and Japheth.
In God's sight, the earth had become corrupt and was filled with violence. Eliphaz's sons were Teman, Omar, Zepho, Gatam, and Kenaz.
God saw that the earth was corrupt, because all creatures behaved corruptly on the earth. Timna was the secondary wife of Eliphaz, Esau's son, and she gave birth to Amalek for Eliphaz. These are the sons of Esau's wife Adah.
God said to Noah, “The end has come for all creatures, since they have filled the earth with violence. I am now about to destroy them along with the earth,
so make a wooden ark. Make the ark with nesting places and cover it inside and out with tar.
References for Genesis 6:14
This is how you should make it: four hundred fifty feet long, seventy-five feet wide, and forty-five feet high.
Make a roof for the ark and complete it one foot from the top. Put a door in its side. In the hold below, make the second and third decks.
References for Genesis 6:16
"I am now bringing the floodwaters over the earth to destroy everything under the sky that breathes. Everything on earth is about to take its last breath.
But I will set up my covenant with you. You will go into the ark together with your sons, your wife, and your sons' wives.
From all living things—from all creatures—you are to bring a pair, male and female, into the ark with you to keep them alive.
From each kind of bird, from each kind of livestock, and from each kind of everything that crawls on the ground—a pair from each will go in with you to stay alive.
Take some from every kind of food and stow it as food for you and for the animals."
Noah did everything exactly as God commanded him.