מדרש אויף בראשית 18:21

אֵֽרֲדָה־נָּ֣א וְאֶרְאֶ֔ה הַכְּצַעֲקָתָ֛הּ הַבָּ֥אָה אֵלַ֖י עָשׂ֣וּ ׀ כָּלָ֑ה וְאִם־לֹ֖א אֵדָֽעָה׃

לאָמיך אַקאָרשט אַראָפּנידערן און זען, אױב זײ האָבן אין גאַנצן געטאָן אַזױ װי דאָס געשרײ װאָס איז געקומען צו מיר; און אױב ניט, לאָמיך װיסן.

Bereshit Rabbati

(Genesis 45:8) "So it was not you who sent me here, but God; and He has made me a father to Pharaoh." I am like a creditor to him, as it is stated (Exodus 22:24), "Do not impose interest upon him." Just as the way of a creditor is to lend to a borrower (Proverbs 22:7), in the book of Rabbi Meir, it is written, "And he has made me a father," as it says, "which the Lord, your God, gives you" (Deuteronomy 15:2). This is a legal judgment derived from the full texts written in the Torah, which emerged from Jerusalem during the Sabbatical year and ascended to Rome, and the scrolls were stored in the synagogue of Asvyros. "And God saw all that He had made, and behold, it was very good" (Genesis 1:31). "For a man and his wife, leather tunics" (Genesis 3:21). "I will descend now and see their outcry" (Genesis 18:21). "The Lord who took me from my father's house and from the land of my birth" (Genesis 24:7). "And he sold his birthright" (Genesis 25:33). "Behold, now, I am old; I do not know the day of my death" (Genesis 27:2). "The fragrance of a field that the Lord has blessed" (Genesis 27:27). "And Oholibamah bore Jeush" (Genesis 36:5). "Eliphaz, the son of Esau" (Genesis 36:10). "These were the sons of Oholibamah, the wife of Esau" (Genesis 36:14). "They arose and went down to Egypt" (Genesis 43:15). "And I buried her there on the way" (Genesis 48:7).And he has made me a father to Pharaoh." And here are the names that came down to Egypt (Genesis 46:8). "So shall you say to the children of Jacob, and tell the children of Israel" (Exodus 19:3). "The children of Israel journeyed from Rameses" (Exodus 12:37). "For it is a sign between Me" (Exodus 31:13). "Five for the planks on one side" (Exodus 26:27). "We have no barricade against it." "And the priest shall take from its blood" (Leviticus 4:34), for if it is a lamb. "And when the zav becomes purified with living water" (Leviticus 15:13). "One lamb of the first year without blemish" (Leviticus 14:10). "All who come to join the ranks must be counted in their census" (Numbers 4:3). "From the first of your dough, you shall give" (Numbers 15:20). "Avenge the vengeance of the children of Israel" (Numbers 31:2). "And they came to Moses and to the congregation of the children of Israel" (Numbers 12:1). "The heads of the families of the house of Joseph approached" (Numbers 36:1). "But I have not the power to go up" (Deuteronomy 1:26). "And they shall inherit it, they and all the people of the land" (Numbers 32:22). "To give us into the hands of the Amorites" (Deuteronomy 1:27). "Nor take a mother upon her young" (Deuteronomy 22:6). "Brimstone and salt burning" (Deuteronomy 29:22). "Like the upheaval of Sodom and Gomorrah" (Deuteronomy 29:22). "I said, I would scatter them" (Deuteronomy 32:26). So they are written in the Torah that emerged from Jerusalem.
פֿרעגט אַ רבֿBookmarkShareCopy

Midrash Tanchuma

Go, get thee down (Exod. 32:7). The Holy One, blessed be He, said to Moses: Mankind has already compelled Me to descend from this place to witness its degradation, as is said: And the Lord came down to see the city … Come, let us go down (Gen. 11:5, 7), and I will go down and see (ibid. 18:21). Hence you too must go down, for it behooves a servant to behave like his master. When Moses heard that, he said to himself: Truly, there is no forgiveness for them. The Holy One, blessed be He, was aware of what was transpiring in Moses’ heart, and so He said to him: Have I not already told thee at the thorn bush that I have surely seen (Exod. 3:7)? You saw but one vision, but I have seen two. I saw them coming to Sinai and accepting My Torah, and I also saw that I would descend at Sinai on My chariot with four animals and they would examine it and unhitch one of them in order to provoke Me, as it is said: And they four had the face of an ox, etc. (Ezek. 1:10), and it is written elsewhere: Thus they exchanged their glory for an ass that eateth grass (Ps. 106:20).
פֿרעגט אַ רבֿBookmarkShareCopy

Pirkei DeRabbi Eliezer

THE SIN OF SODOM
THE third descent which He descended || was at Sodom, as it is said, "I will go down now and see" (Gen. 18:21). The Holy One, blessed be He, said: Shall I not tell My friend Abraham an important matter which I will do in My world in the future, as it is said, "And the Lord said, Shall I hide from Abraham that which I do?" (Gen. 18:17). Rabbi Chanina, son of Dosa, said: The Holy One, blessed be He, was revealed, and three angels (appeared) unto our father Abraham, as it is said, "And he lifted up his eyes and looked, and, lo, three men" (Gen. 18:2). He began to inform him about the conception of the womb by Sarah his wife, as it is said, "I will certainly return unto thee when the season cometh round" (Gen. 18:10). Afterwards He told (him) about the doom of Sodom, as it is said, "And the Lord said, Because the cry of Sodom and Gomorrah is great" (Gen. 18:20).
פֿרעגט אַ רבֿBookmarkShareCopy