The Lord saw that every inclination of their hearts was evil and he was sorry to have made humankind. The Lord said, “I will blot them out—people and animals and creeping things and things that fly.”
Genesis 6:5-8

“I am going to bring floodwaters on the earth to destroy all life under the heavens, every creature that has the breath of life in it. Everything on earth will perish. But I will establish my covenant with you, and you will enter the ark—you and your sons and your wife and your sons’ wives with you.” Noah did everything just as God commanded him.
Genesis 6: 18-22

The rain fell on the earth forty days and forty nights.
Genesis 7:12