Midrash Sekehl Tov, Genesis 19
מדרש שכל טוב, בראשית יט
אל נא אחי תרעו. לא תעשו דבר זה כי רעה גדולה היא לפני הקב"ה, שנאמר ואיך אעשה (את) הרעה הגדולה הזאת (בראשית לט ט), וכן הזהיר הקב"ה את בני נח, שנאמר ודבק באשתו והיו לבשר אחד (בראשית ב כד) ולא בזכר שאין נעשין בשר אחד
“I pray you, brethren, do not so wickedly.” (Genesis 19:6). [Lot tells the Sodomites:] Do not do this thing [sexually abuse my guests] because it is wicked in the eyes of the Holy One, Blessed be He, as it says: “How can I do this great wickedness (and sin against God).” God likewise warns the sons of Noah, as it says, “and shall cling unto his wife and become one flesh,” and not with a man, for they cannot be made one flesh. [Translation by Rabbi Steven Greenberg]
Time Period: Medieval (Geonim through the 16th Century)