Jacob heard that there was food to be gotten in Egypt so he sends his sons there, except for Benjamin, the youngest, to buy grain. They come to Joseph, not knowing it was him, and bow to him. Joseph accuses them of being spies, puts Simeon in prison, and sends the others back home to fetch Benjamin so as to prove they are not spies. He also secrets their money in their bags of grain. When they return to Jacob they find the money and become fearful. Jacob does not want to lose Benjamin, the brother of Joseph. Perhaps he doesn’t trust his sons for some reason.
So, the dreams of Joseph have come true. Joseph also learns that Reuben tried to save him so that is why Simeon was arrested.
Sin catches up with us. We know the truth when we have sinned, God knows the truth, perhaps others know as well. If we had the gift of foresight, we could tell ourselves that one day we would be caught out. And then, when finally the truth has been revealed, we live the remainder of our days in regret. It is just better not to sin.