So he searched their saddle-bags before his brother 's , then produced the cup from his brother 's bag . That is how We planned an excuse for Joseph , for under the law of the king he could not detain his brother unless God so willed .