CCC 312 In time we can discover that God in his almighty providence can bring a good from the consequences of an evil, even a moral evil, caused by his creatures: “It was not you”, said Joseph to his brothers, “who sent me here, but God. .. You meant evil against me; but God meant it for good, to bring it about that many people should be kept alive.”1 From the greatest moral evil ever committed – the rejection and murder of God’s only Son, caused by the sins of all men – God, by his grace that “abounded all the more”,2 brought the greatest of goods: the glorification of Christ and our redemption. But for all that, evil never becomes a good.

1 Gen 45:8; 50:20; cf. Tob 2:12 (Vulg.).
2 Cf. Rom 5:20.