When Joseph reveals himself to his brothers, he reassures them that he will not take revenge for their vile deed in selling him into slavery. He is alive, and now he is the viceroy in Egypt. He tells them that actually G‑d sent him to Egypt to save his family from famine. The brothers are just a tool in G‑d's hands. (Genesis 45: 3-8).