Yusuf 12:22
And when he [i.e., Joseph] reached maturity, We gave him judgement and knowledge. And thus We reward the doers of good.
Ayah 22
وَلَمَّا بَلَغَ أَشُدَّهُۥٓ ءَاتَيْنَٰهُ حُكْمًا وَعِلْمًا ۚ وَكَذَٰلِكَ نَجْزِى ٱلْمُحْسِنِينَ
And when he [i.e., Joseph] reached maturity, We gave him judgement and knowledge. And thus We reward the doers of good.