Genesis 6:6-8

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.