Psalms 105:16-22 NIV
He called down famine on the land and destroyed all their supplies of food; and he sent a man before them— Joseph, sold as a slave. They bruised his feet with shackles, his neck was put in irons, till what he foretold came to pass, till the word of the LORD proved him true. The king sent and released him, the ruler of peoples set him free. He made him master of his household, ruler over all he possessed, to instruct his princes as he pleased and teach his elders wisdom.