Genesis 6:5-8
5 The Lord saw that the wickedness (depravity) of man was great on the earth, and that every imagination or intent of the thoughts of his heart were only evil continually.
6 The Lord (a)regretted that He had made mankind on the earth, and He was [deeply] grieved in His heart.
7 So the Lord said, “I will destroy (annihilate) mankind whom I have created from the surface of the earth—not only man, but the animals and the crawling things and the birds of the air—because it [deeply] grieves Me [to see mankind’s sin] and I regret that I have made them.”
8 But Noah found favor and grace in the eyes of the Lord.
Footnotes:
a.
Genesis 6:6: The expressions of regret and grief seen here do not mean that God acknowledged the creation of man as a mistake on His part. God is omniscient, knowing all things (Ps 139:16) and He knew that mankind would come into sin and wickedness. God grieved over the sin of man because it was appropriate for Him to do so.