Genesis 41 tracks the rise of Joseph from prison to power. We see that God had finished his refining work and now that Joseph was ready God used him for his purposes.