Justice refers to one of God’s essential attributes, denoting His moral perfection and righteousness in His actions, both in relation to Himself and to His creation. In Scripture, God’s justice involves giving people what is due to them—rewarding the righteous and punishing the wicked—based on His perfect knowledge and standards of holiness.
Deuteronomy 32:4 “The Rock, his work is perfect, for all his ways are justice. A God of faithfulness and without iniquity, just and upright is he.”