As far as God’s justice is concerned, Abraham asked a pointed rhetorical question of the Lord: “Shall not the Judge of all the earth do right?” (Genesis:18:25). David wrote in Psalm 19 of the faithfulness of God in leaving a witness of Himself: “The heavens declare the glory of God; and the firmament sheweth his handiwork. Day unto day uttereth speech, and night unto night sheweth knowledge. There is no speech nor language, where their voice is not heard.” So many scriptures speak of God’s absolute justice and absolute love. Therefore, we can know that God is absolutely fair and just. As the Apostle Paul explained, “For the invisible things of him from the creation of the world are clearly seen, being understood by the things that are made, even his eternal power and Godhead; so that they are without excuse” (Romans:1:20). We do not know all the workings of God’s justice and mercy, but we know enough from the Scriptures to realize that the Judge of all the earth will do that which is right.
"That be far from thee to do after this manner, to slay the righteous with the wicked: and that the righteous should be as the wicked, that be far from thee: Shall not the Judge of all the earth do right?"