Bereishit (Genesis) 6:9-22
9 These are the offspring of Noach—Noach was a righteous man, perfect in his generations; Noah walked with G-d. 10Noach had begotten three sons: Shem, Ham and Yapheth.
11Now the earth had become corrupt before G-d; and the earth had become field with robbery. 12And G-d saw the Earth and behold it was corrupted, for all flesh had corrupted its way upon the earth.
13 G-d said to Noach, “The end of all flesh as come before me, for the earth is filled with robbery through them; and behold I am about to destroy them from the earth. 14Make for yourself an Ark of gopher wood: make the Ark with compartments, and cover it inside and out with pitch. 15This is how you should make it—three hundred cubits the link of the Ark; fifty cubit’s its with: and thirty cubits its height. 16A window shall you make for the Ark, and to a cubit finish it from above. Put the entrance of the Ark in its side; make it with bottom, second, and third decks.”
17“And as for Me—behold, I am about to bring the flood-waters upon the earth to destroy all flesh in which there is a breath of life from under the heavens; everything that is in the earth shall expire. 18But I will establish My covenant with you, and you shall enter the Ark—you, your sons, your wife, and your sons wife’s with you. 19And from all that lives, of all flesh, two of each shall you bring into the Ark to keep alive with you; they shall be male and female. 20From each bird according to its kind, and from each animal according to its kind, and from each thing that creeps on the ground according to its kind, two of each shall come to you to keep alive.”
21“And as for you, take yourself of everything that is eaten and gather it in to yourself, that it shall be as food for you and for them.” 22Noach did according to everything G-d commanded him, so he did.