Aslam

Surah Yusuf — 12:22
وَلَمَّا بَلَغَ أَشُدَّهُۥٓ ءَاتَيۡنَٰهُ حُكۡمٗا وَعِلۡمٗاۚ وَكَذَٰلِكَ نَجۡزِي ٱلۡمُحۡسِنِينَ
And when he reached maturity, We gave him wisdom and knowledge. This is how We reward the good-doers.

Commentary

When Joseph reached the height of his spiritual and physical strength, I gave him understanding and knowledge. With a reward similar to what I gave him, I reward those who do good by following Me.

Read Tafsir Ibn Kathir