So, he started with their bags before (searching) the bag of his brother, then, recovered it from the bag of his brother.This is how We planned for Yūsuf. He had no right to take his brother according to the law of the king, unless Allah so willed. We elevate in ranks whomsoever We will. Above every man of knowledge, there is someone more knowledgeable.
They said, “If he commits theft, (there is nothing surprising, because) his other brother had committed theft earlier.” Yūsuf kept it (his reaction) to himself and did not reveal it to them. He said (in his heart), “You are even worse in position. Allah knows best of what you allege.”
So when they lost hope in him, they went aside for consultation. The oldest of them said, “Do you not know that your father has taken pledge from you in the name of Allah, while you had defaulted earlier in the case of Yūsuf. So, I shall never leave this land unless my father permits me or Allah decides about me. He is the best of all judges.