Genesis 45:5
"Now therefore be not grieved, nor angry with yourselves, that ye sold me hither: for God did send me before you to preserve life."
Cross References (ranked by relevance)
But as for you, ye thought evil against me; but God meant it unto good, to bring to pass, as it is this day, to save much people alive.
And said, Naked came I out of my mother’s womb, and naked shall I return thither: the LORD gave, and the LORD hath taken away; blessed be the name of the LORD.
Then said Jesus, Father, forgive them; for they know not what they do. And they parted his raiment, and cast lots.
And they said, Thou hast saved our lives: let us find grace in the sight of my lord, and we will be Pharaoh’s servants.
And they rose up in the morning early, and worshipped before the LORD, and returned, and came to their house to Ramah: and Elkanah knew Hannah his wife; and the LORD remembered her.
For thou didst it secretly: but I will do this thing before all Israel, and before the sun.
So that contrariwise ye ought rather to forgive him, and comfort him, lest perhaps such a one should be swallowed up with overmuch sorrow.
Lest Satan should get an advantage of us: for we are not ignorant of his devices.
And Absalom and all the men of Israel said, The counsel of Hushai the Archite is better than the counsel of Ahithophel. For the LORD had appointed to defeat the good counsel of Ahithophel, to the intent that the LORD might bring evil upon Absalom.