Genesis 6:5-6

6:5 But the Lord saw that the wickedness of humankind had become great on the earth. Every inclination of the thoughts of their minds was only evil all the time. 6:6 The Lord regretted that he had made humankind on the earth, and he was highly offended.

Genesis 6:12

6:12 God saw the earth, and indeed it was ruined, for all living creatures on the earth were sinful.