Karl Barth said this quote

The righteousness of God in His election means, then, that as a righteous Judge God perceives and estimates as such the lost cause of the creature, and that in spite of its opposition He gives sentence in its favour, fashioning for it His own righteousness.