Genesis 50:20

As for you, it was in your mind to do me evil, but God has given a happy outcome, the salvation of numbers of people, as you see today.

Romans 8:28

And we are conscious that all things are working together for good to those who have love for God, and have been marked out by his purpose.

Psalm 119:71

It is good for me to have been through trouble; so that I might come to the knowledge of your rules.

Genesis 37:4

And because his brothers saw that Joseph was dearer to his father than all the others, they were full of hate for him, and would not say a kind word to him.

Genesis 37:18-20

But they saw him when he was a long way off, and before he came near them they made a secret design against him to put him to death;

Genesis 45:5-8

Now do not be troubled or angry with yourselves for sending me away, because God sent me before you to be the saviour of your lives.

Psalm 56:5

Every day they make wrong use of my words; all their thoughts are against me for evil.

Psalm 76:10

The ... will give you praise; the rest of ...

Isaiah 10:7

But this is not what is in his mind, and this is not his design; but his purpose is destruction, and the cutting off of more and more nations.

Acts 2:23

Him, when he was given up, by the decision and knowledge of God, you put to death on the cross, by the hands of evil men:

Acts 3:13-15

The God of Abraham, of Isaac, and of Jacob, the God of our fathers, has given glory to his servant Jesus; whom you gave up, turning your backs on him, when Pilate had made the decision to let him go free.

Acts 3:26

To you, first, God sent his servant, blessing you by turning every one of you from his sins.

Psalm 105:16-17

And he took away all food from the land, so that the people were without bread.

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
And because his brothers saw that Joseph was dearer to his father than all the others, they were full of hate for him, and would not say a kind word to him.
Psalm 56:5
Every day they make wrong use of my words; all their thoughts are against me for evil.

God meant

Genesis 45:5
Now do not be troubled or angry with yourselves for sending me away, because God sent me before you to be the saviour of your lives.
Psalm 76:10
The ... will give you praise; the rest of ...
Psalm 105:16
And he took away all food from the land, so that the people were without bread.
Psalm 119:71
It is good for me to have been through trouble; so that I might come to the knowledge of your rules.
Isaiah 10:7
But this is not what is in his mind, and this is not his design; but his purpose is destruction, and the cutting off of more and more nations.
Acts 2:23
Him, when he was given up, by the decision and knowledge of God, you put to death on the cross, by the hands of evil men:
Acts 3:13
The God of Abraham, of Isaac, and of Jacob, the God of our fathers, has given glory to his servant Jesus; whom you gave up, turning your backs on him, when Pilate had made the decision to let him go free.
Romans 8:28
And we are conscious that all things are working together for good to those who have love for God, and have been marked out by his purpose.

General references

Philemon 1:15
For it is possible that for this reason he was parted from you for a time, so that you might have him for ever;

Basic English, produced by Mr C. K. Ogden of the Orthological Institute - public domain