He searched their bags before his brother's and then took out the goblet from his brother's bag. As such We directed Joseph. By the king's law he had no right to seize his brother unless Allah willed otherwise. We raise whom We will in rank; over every knowledgeable person is One who knows.