Psalm 105:16-22 English Standard Version
16 When he summoned a famine on the land
and broke all supply of bread,
17 he had sent a man ahead of them,
Joseph, who was sold as a slave.
18 His feet were hurt with fetters;
his neck was put in a collar of iron;
19 until what he had said came to pass,
the word of the Lord tested him.
20 The king sent and released him;
the ruler of the peoples set him free;
21 he made him lord of his house
and ruler of all his possessions,
22 to bind his princes at his pleasure
and to teach his elders wisdom.