Genesis 6: 5-10, 22
5The LORD saw how great man’s wickedness on the earth had become, and that every inclination of the thoughts of his heart was only evil all the time. 6The LORD was grieved that he had made man on the earth, and his heart was filled with pain. 7So the LORD said, “I will wipe mankind, whom I have created, from the face of the earth— men and animals, and creatures that move along the ground, and birds of the air— for I am grieved that I have made them.” 8But Noah found favor in the eyes of the LORD. 9This is the account of Noah. Noah was a righteous man, blameless among the people of his time, and he walked with God. 10Noah had three sons: Shem, Ham and Japheth. 11Now the earth was corrupt in God’s sight and was full of violence. 12God saw how corrupt the earth had become, for all the people on earth had corrupted their ways. 13So God said to Noah, “I am going to put an end to all people, for the earth is filled with violence because of them. I am surely going to destroy both them and the earth. 14So make yourself an ark of cypress wood; make rooms in it and coat it with pitch inside and out.

22Noah did everything just as God commanded him.