When the Lord saw that man's wickedness was widespread on the earth and that every scheme his mind thought of was nothing but evil all the time,
References for Genesis 6:5
the Lord regretted that He had made man on the earth, and He was grieved in His heart.
Then the Lord said, "I will wipe off the face of the earth: man, whom I created, together with the animals, creatures that crawl, and birds of the sky-for I regret that I made them."
Noah, however, found favor in the eyes of the Lord.