Joseph learned through his life that God works good from bad. Joseph was able to forgive his brothers’ evil hatred because he understood this: if God forgives, we will also forgive.
Jacob had learned the lesson: trusting God was the only way. When Jacob was worried about reuniting with his brother Esau, he went to God in prayer and demanded God's blessing, on the basis of God's own grace and promises.