Psalms 105:16-22 NRSV
When he summoned famine against the land,
and broke every staff of bread,
he had sent a man ahead of them,
Joseph, who was sold as a slave.
His feet were hurt with fetters,
his neck was put in a collar of iron;
until what he had said came to pass,
the word of the LORD kept testing him.
The king sent and released him;
the ruler of the peoples set him free.
He made him lord of his house,
and ruler of all his possessions,
to instruct his officials at his pleasure,
and to teach his elders wisdom.
NRSV: New Revised Standard Version