Genesis 18:16-21
Abraham Pleads for Sodom
18:16 When the men got up to leave, they looked out over Sodom. (Now Abraham was walking with them to see them on their way.)
18:17 Then the Lord said, “Should I hide from Abraham what I am about to do?
18:18 After all, Abraham will surely become a great and powerful nation, and all the nations on the earth will pronounce blessings on one another using his name.
18:19 I have chosen him so that he may command his children and his household after him to keep the way of the Lord by doing what is right and just. Then the Lord will give to Abraham what he promised him.”
18:20 So the Lord said, “The outcry against Sodom and Gomorrah is so great and their sin so blatant
18:21 that I must go down and see if they are as wicked as the outcry suggests. If not, I want to know.”