وَلَمَّا بَلَغَ أَشُدَّهُۥٓ ءَاتَيْنَٰهُ حُكْمًا وَعِلْمًا وَكَذَٰلِكَ نَجْزِى ٱلْمُحْسِنِينَ ٢٢
Walammaa balagha ashuddahoo aataynaahu hukmaw wa`ilmaa, wakadhaalika najzil-muhsineen
And when he [i.e., Joseph] reached maturity, We gave him judgement and knowledge. And thus We reward the doers of good.