Now that Jacob is dead they have this to say:
So they sent a message to Joseph, saying, 'Your father gave this command before he died, Say to Joseph, please forgive the transgression of your brothers and their sin, because they did evil to you. And now please forgive the transgression of the servants of the God of your father.' Joseph wept when they spoke to him.
Joseph, over the years, has become a man who loves God, following Him in all His ways. He tells his brothers to not fear. The evil they meant against him was used by God for good. He promises to provide for them and their families.
You can find the entire drama unfold in Genesis 35-50 which teaches us that God can transform any evil into good, God is the ultimate ruler over all and uses everything for his glory and our ultimate good.