G-d said, “Let us make Man in Our image, after Our likeness.” (1,16)
Commenting on this pasuk, the Midrash says: (Bereshis Rabbi 8:3)
With whom was He consulting? R’ Ami says, He was consulting with His heart.
This may compared to a king who commissioned an architect to build a palace for him. When he finally saw it, he was displeased. With whom will he be angry? Will it not be with the architect? Thus does the pasuk state (Bereshis 6,6)
HaShem regretted having made Man on earth, and He was sad towards His heart.”
The Midrash informs us that Hashem’s response upon surveying the moral decline of man in the generation of the flood, of “being sad toward His heart,” was based on the fact the it was His heart with Whom He originally consulted before creating Man in His likeness.
