Genesis 18:15-25

15 Because she was afraid, Sarah denied that she had laughed. But the LORD said, "Yes, you did laugh."
16 Then the men got up to leave. As Abraham was walking with them to see them off, they looked toward Sodom.
17 The LORD said, "I shouldn't hide what I am going to do from Abraham.
18 After all, Abraham is going to become a great and mighty nation and through him all the nations of the earth will be blessed.
19 I have chosen him so that he will direct his children and his family after him to keep the way of the LORD by doing what is right and just. In this way I, the LORD, will do what I have promised Abraham."
20 The LORD also said, "Sodom and Gomorrah have many complaints against them, and their sin is very serious.
21 I must go down and see whether these complaints are true. If not, I will know it."
22 From there the men turned and went on toward Sodom, but Abraham remained standing in front of the LORD.
23 Abraham came closer and asked, "Are you really going to sweep away the innocent with the guilty?
24 What if there are 50 innocent people in the city? Are you really going to sweep them away? Won't you spare that place for the sake of the 50 innocent people who are in it?
25 It would be unthinkable for you to do such a thing, to treat the innocent and the guilty alike and to kill the innocent with the guilty. That would be unthinkable! Won't the judge of the whole earth do what is fair?"