Genesis 50:20
As for you, you meant evil against me, but God meant it for good
Just as in the days of Joseph, evil men plot an evil course, and think that they are in control. However, the truth is the same now as it was then. God is in control and working out his own plans for the good of his people.
That is not to say that we will not suffer captivity as Joseph did, but rather to remind us that whatever happens, it is all in God’s hands and in his control.
Like Joseph, we may be tempted badly by the pleasures of this world, but if it is not right, then we must stay true to our calling and resist the evil one. If we stay true to our calling, then regardless of the situations we find ourselves in, we will find that God is still with us wherever we go.