Genesis 18:25mishpat
"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 appeals to God, the Judge of all the earth, to act justly.
Jeremiah 30:11mishpat
'For I am with you,' declares the Lord, 'to save you; For I will destroy completely all the nations where I have scattered you, Only I will not destroy you completely. But I will chasten you justly And will by no means leave you unpunished.'
God promises to save Israel yet discipline them justly, not leaving them unpunished.