In his classic, The Holiness of God, R. C. Sproul writes:
The Cross was at once the most horrible and the most beautiful example of God’s wrath. It was the most just and the most gracious act in history. God would have been more than unjust, He would have been diabolical to punish Jesus if Jesus had not first willingly taken on Himself the sins of the world. Once Christ had done that, once He volunteered to be the Lamb of God, laden with our sin, then He became the most grotesque and vile thing on this planet. With the concentrated load of sin He carried, He became utterly repugnant to the Father. God poured out His wrath on this obscene thing. God made Christ accursed for the sin He bore. Herein was God’s holy justice perfectly manifest. Yet it was done for us. He took what justice demanded from us. This “for us” aspect of the Cross is what displays the majesty of its grace. At the same time justice and grace, wrath and mercy. It is too astonishing to fathom.