Genesis 50:20

As for you, you meant evil against me, but God meant it for good, to bring to pass, as it is this day, to save many people alive.

Romans 8:28

We know that all things work together for good for those who love God, to those who are called according to his purpose.

Psalm 119:71

It is good for me that I have been afflicted, that I may learn your statutes.

Genesis 37:4

His brothers saw that their father loved him more than all his brothers, and they hated him, and couldn't speak peaceably to him.

Genesis 37:18-20

They saw him afar off, and before he came near to them, they conspired against him to kill him.

Genesis 45:5-8

Now don't be grieved, nor angry with yourselves, that you sold me here, for God sent me before you to preserve life.

Psalm 56:5

All day long they twist my words. All their thoughts are against me for evil.

Psalm 76:10

Surely the wrath of man praises you. The survivors of your wrath are restrained.

Isaiah 10:7

However he doesn't mean so, neither does his heart think so; but it is in his heart to destroy, and to cut off not a few nations.

Acts 2:23

him, being delivered up by the determined counsel and foreknowledge of God, you have taken by the hand of lawless men, crucified and killed;

Acts 3:13-15

The God of Abraham, Isaac, and Jacob, the God of our fathers, has glorified his Servant Jesus, whom you delivered up, and denied in the presence of Pilate, when he had determined to release him.

Acts 3:26

God, having raised up his servant, Jesus, sent him to you first, to bless you, in turning away everyone of you from your wickedness."

Psalm 105:16-17

He called for a famine on the land. He destroyed the food supplies.

Treasury of Scripture Knowledge

Summary

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.

General references

Bible References

Ye thought

Genesis 37:4
His brothers saw that their father loved him more than all his brothers, and they hated him, and couldn't speak peaceably to him.
Psalm 56:5
All day long they twist my words. All their thoughts are against me for evil.

God meant

Genesis 45:5
Now don't be grieved, nor angry with yourselves, that you sold me here, for God sent me before you to preserve life.
Psalm 76:10
Surely the wrath of man praises you. The survivors of your wrath are restrained.
Psalm 105:16
He called for a famine on the land. He destroyed the food supplies.
Psalm 119:71
It is good for me that I have been afflicted, that I may learn your statutes.
Isaiah 10:7
However he doesn't mean so, neither does his heart think so; but it is in his heart to destroy, and to cut off not a few nations.
Acts 2:23
him, being delivered up by the determined counsel and foreknowledge of God, you have taken by the hand of lawless men, crucified and killed;
Acts 3:13
The God of Abraham, Isaac, and Jacob, the God of our fathers, has glorified his Servant Jesus, whom you delivered up, and denied in the presence of Pilate, when he had determined to release him.
Romans 8:28
We know that all things work together for good for those who love God, to those who are called according to his purpose.

General references

Philemon 1:15
For perhaps he was therefore separated from you for a while, that you would have him forever,