Psalm 105:17-19 New Revised Standard Version (NRSV)
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 kept testing him.