God was grieved that He had made man because of man’s pervasive wickedness. (Gen. 6:5-11). A couple of questions arise: did God make a mistake when He made man? That He is grieved by his own creation seems to suggest a flaw in the Creator: unless God intended to be grieved. And this should be intuitively understandable to all of us who like stories that make us sad. And many of us particularly like sad stories that turn out happy. Similarly, we like to see our sports teams in danger of losing, only to win. God also likes this kind of contrast, as Paul writes that God made some people for wrath so that he could off-set them against those people He showed mercy (Rom. 9:20-23).
This is a hard teaching, but not one beyond our intuitive understanding.