That is how Joseph viewed years of captivity. The hand of God preparing him to do a mighty work. That is why Joseph could forgive. Did he forget? No, he knew his own history, but he looked beyond the short term pain and looked broader than what the suffering meant to him. He looked at God's plan. He trusted God to use all things for good.