Genesis 6:5-12
Then the Lord saw that the wickedness of mankind was great on the earth, and that every intent of the thoughts of their hearts was only evil continually. [6] So the Lord was sorry that He had made mankind on the earth, and He was grieved in His heart. [7] Then the Lord said, "I will wipe out mankind whom I have created from the face of the land; mankind, and animals as well, and crawling things, and the birds of the sky. For I am sorry that I have made them." [8] But Noah found favor in the eyes of the Lord. [9] These are the records of the generations of Noah. Noah was a righteous man, blameless in his generation. Noah walked with God. [10] And Noah fathered three sons: Shem, Ham, and Japheth. [11] Now the earth was corrupt in the sight of God, and the earth was filled with violence. [12] And God looked on the earth, and behold, it was corrupt; for humanity had corrupted its way upon the earth.
NASB