In fact one day Joseph would rise from this pit to the position of being the second most powerful man in the world. But all Joseph knew was that God seemed to have abandoned him. Folks, we must keep in mind that there is always a bigger picture that we cannot see from this side. But turn it over and it all makes sense. All we see are the threads and knots, but one day when we get to heaven we will see the other side and realize that all the colours blended together to make a beautiful piece of art.
Events often seem to have no connection to one another.
Clearly the Lord planned for something like this to happen to Joseph all along. In fact God told Abraham back in Gen 15 many years before Joseph was even born that his people would one day go down to Egypt and become a nation of slaves. But then he said that they would march out of Egypt with a high hand having plundered their captors after having been preserved from the famine. The events of this day really were a necessary part of a bigger picture. And one day Joseph came to understand how all these events fit together.