Psalms 105:17-22

ASV(i) 17 He sent a man before them;
Joseph was sold for a servant: 18 His feet they hurt with fetters:
He was laid in [chains of] iron, 19 Until the time that his word came to pass,
The word of Jehovah tried him. 20 The king sent and loosed him;
Even the ruler of peoples, and let him go free. 21 He made him lord of his house,
And ruler of all his substance; 22 To bind his princes at his pleasure,
And teach his elders wisdom.