So he began with their bags, before his brother's bag. Then he pulled it out of his brother’s bag. Thus We devised a plan for Joseph; he could not have detained his brother under the king’s law, unless Allah so willed. We elevate by degrees whomever We will; and above every person of knowledge, there is one more learned.