Genesis 18:25shaphat
"Far be it from You to do such a thing, to slay the righteous with the wicked, so that the righteous and the wicked are {treated} alike. Far be it from You! Shall not the Judge of all the earth deal justly?"
Abraham trusts God as the Judge of all the earth, who acts justly.