Then the LORD saw that the wickedness of man was great on the earth, and that every intent of the thoughts of his heart was only evil continually. The LORD was sorry that He had made man on the earth, and He was grieved in His heart. The LORD said, “I will blot out man whom I have created from the face of the land, from man to animals to creeping things and to birds of the sky; for I am sorry that I have made them.” But Noah found favor in the eyes of the LORD.
However, this passage does not work well with Calvinism at all, considering how Hard Determinism teaches that God immutably decrees whatsoever that comes to pass:
John Calvin writes: “We also note that we should consider the creation of the world so that we may realize that everything is subject to God and ruled by his will and that when the world has done what it may, nothing happens other than what God decrees.” (Acts: Calvin, The Crossway Classic Commentaries, p.66, emphasis mine)
Calvin writes: “First, the eternal predestination of God, by which before the fall of Adam He decreed what should take place concerning the whole human race and every individual, was fixed and determined.” (Concerning the Eternal Predestination of God, p.121, emphasis mine)
Calvinist, William MacDonald, comments: “The Lord’s sorrow does not indicate an arbitrary change of mind, though it seems that way to man. Rather, it indicates a different attitude on God’s part in response to some change in man’s behavior. Because He is holy, He must react against sin.” (Believer’s Bible Commentary, p.40, emphasis mine)