Thus in the same way that We were graceful towards Him by delivering him from prison We established Joseph in the land the land of Egypt that he may settle in it wherever he wished after having suffered hardship and imprisonment. According to the story the king crowned him gave him a signet-ring to wear and appointed him in place of the Court officer whom he removed from his position and who later died; and so he the king made him Joseph take the latter’s spouse as a wife. He Joseph discovered that she was still a virgin and she bore him two children. He Joseph established justice in Egypt and people became subject to him. We confer Our mercy on whomever We will and We do not waste the wage of the virtuous.