Psalms 105:17-19
Psalms 105:17-19 AMP
He sent a man before them, Joseph, who was sold as a slave. [Gen 45:5; 50:20, 21] His feet they hurt with shackles; He was put in chains of iron, Until the time that his word [of prophecy regarding his brothers] came true, The word of the LORD tested and refined him.