and rescued him from all his troubles. And God gave him favor before Pharaoh, king of Egypt. God also gave Joseph unusual wisdom, so that Pharaoh appointed him governor over all of Egypt and put him in charge of the palace.