Another interpretation of "These are the generations of Noah" (Genesis 6:9): What is written above on this matter? "And the Lord regretted (wayyinaḥem) that He had made the human" and so on (Genesis 6:6). Rabbi Judah and Rabbi Nehemiah disagree. Rabbi Judah says: As it were, the Holy One, blessed be He, was distressed that He had made the human. The Holy One, blessed be He, said: Had I created him in the heavens, he would not have sinned, just as the angels do not sin. Therefore, "And the Lord regretted." For what reason? "That He had made the human" on the earth; for had he been in the heavens, he would not have sinned. And Rabbi Nehemiah said: What is "And the Lord regretted (wayyinaḥem)"? It is a term of comforting (niḥumim). Why so? The Holy One, blessed be He, said: I am comforted that I made the human on the earth, for had I created him in the heavens and settled him beside the angels, he would have incited them to rebellion, just as he rebelled among the lower beings. Therefore I was comforted that I created him on the earth, as it is said, "And the Lord regretted." Rabbi Aḥa son of Rabbi Ḥanina said: When the Holy One, blessed be He, saw that His world was destroyed, as it were He mourned and grieved over it, as you say, "The king grieves over his son" (II Samuel 19:3). That is the meaning of "And He grieved to His heart" (Genesis 6:6). Rabbi Abbahu said: He grieved only over the heart of the human, like a person who has made something bad and knows that he has not made something fine, and says, "What have I done?" So too — may the name of the Holy One, blessed be He, be blessed — [He said]: I am the one who placed the evil leaven in the dough, for "the inclination of the human heart is evil from his youth" (Genesis 8:21). That is the meaning of "And He grieved to His heart" — to the heart of the human.
Why God Made Adam on Earth and Not Among the Angels
Midrash Tanchuma Buber, Noach 4:1
ד"א אלה תולדות נח. מה כתיב למעלה מן הענין, וינחם ה' כי עשה את האדם וגו' (בראשית ו ו), ר' יהודה ור' נחמיה חולקין, ר' יהודה אומר כביכול תהה הקב"ה על שעשה את האדם, אמר הקב"ה אילו בראתי אותו בשמים לא היה חוטא, כשם שאין המלאכים חוטאין, לפיכך וינחם ה', בשביל מה, כי עשה את האדם בארץ, שאילו היה בשמים לא היה חוטא. ור' נחמיה אמר מהו וינחם, לשון נחומים, למה כן, אמר הקב"ה נחמתי שעשיתי את האדם בארץ, שאילו בראתי אותו בשמים, והשריתי אותו אצל המלאכים היה ממרידן, כשם שמרד בתחתונים, לפיכך נתנחמתי שבראתי אותו בארץ, שנאמר וינחם ה'. אמר ר' אחא ב"ר חנינא כיון שראה הקב"ה שעולמו חרב, כביכול היה מתאבל עליו ומתעצב, כד"א נעצב המלך על בנו (ש"ב יט ג), הוי אומר ויתעצב אל לבו (בראשית שם). אמר ר' אבהו לא נתאבל אלא על לבו של אדם, כאדם שעשה דבר רע וידע שלא עשה דבר יפה, והוא אמר מה עשיתי, כך יתברך שמו של הקב"ה, אני הוא שנתתי שאור רע בעיסה, כי יצר לב האדם רע מנעוריו (שם ח כא), הוי אומר ויתעצב אל לבו, [אל לבו] של אדם.