Genesis 6:5-6

5 The Lord saw that the wickedness of humankind was great in the earth, and that every inclination of the thoughts of their hearts was only evil continually.
6 And the Lord was sorry that he had made humankind on the earth, and it grieved him to his heart.