‏ Genesis 45:5

5And now do not be distressed or angry with yourselves because you sold me here, afor God sent me before you to preserve life.
Copyright information for ESV