And when Joseph reached the peak of his strength in his youth, We gave him understanding and knowledge, and like such a reward with which We recompensed Joseph for his excellence, We recompense the doers of good for their excellence. And in this is a consolation for the Messenger of Allah, peace and blessings of Allah be upon him.