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” (Gen. 6:6-7).
I [the Lord] regret that I have made Saul king, for he has turned back from following Me and has not carried out My commands (1 Sam. 15:11).
I suppose it is comforting to know that even God has His bad days. But on a more serious level, we can’t help but wonder why God would regret something that He Himself did. We just read that God said He was sorry that He “made man on the earth.” He wished He hadn’t done it. But if God is all-knowing, and if He knows everything that is yet to happen, why didn’t He decide not to create man on the earth before He got started, knowing that He would regret it otherwise?