10 He saved Joseph from all his troubles. God made Joseph wise. He helped him to become the friend of Pharaoh, the king of Egypt. So Pharaoh made Joseph ruler over Egypt and his whole palace.