Genesis 6:5-15

5 The Lord saw that the wickedness of man was great in the earth, and that every intention of the thoughts of his heart was only evil continually. 6 And the Lord was sorry that he had made man on the earth, and it grieved him to his heart. 7 So the Lord said, “I will blot out man whom I have created from the face of the land, man and animals and creeping things and birds of the heavens, for I am sorry that I have made them.” 8 But Noah found favor in the eyes of the Lord.

9 These are the generations of Noah. Noah was a righteous man, blameless in his generation. Noah walked with God. 10 And Noah had three sons, Shem, Ham, and Japheth.

11 Now the earth was corrupt in God’s sight, and the earth was filled with violence. 12 And God saw the earth, and behold, it was corrupt, for all flesh had corrupted their way on the earth. 13 And God said to Noah, “I have determined to make an end of all flesh, for the earth is filled with violence through them. Behold, I will destroy them with the earth. 14 Make yourself an ark of gopher wood. Make rooms in the ark, and cover it inside and out with pitch. 15 This is how you are to make it: the length of the ark 300 cubits, its breadth 50 cubits, and its height 30 cubits. (ESV)