Genesis 18:23-25

23 Then Abraham drew near and said, a “Will you indeed sweep away the righteous with the wicked? 24 Suppose there are fifty righteous within the city. Will you then sweep away the place and not spare it for the fifty righteous who are in it? 25 Far be it from you to do such a thing, to put the righteous to death with the wicked b so that the righteous fare as the wicked! Far be that from you! c Shall not the Judge of all the earth do what is just?”
Copyright information for ESV