Genesis 50:20 GW

20 Even though you planned evil against me, God planned good to come out of it. This was to keep many people alive, as he is doing now.