'Ye thought evil against me, but God meant it unto good' - one of the cleanest statements of theodicy in the whole Torah. It doesn't erase the brothers' actual evil intent, just says God worked through it anyway.
TheologicalSelect a line on the left to view commentary.