Thus We devised a plan for Joseph ; he could not have detained his brother under the king s law ’ , unless God so willed . We elevate by degrees whomever We will ; and above every person of knowledge , there is one more learned .