وَلَمَّا بَلَغَ أَشُدَّهُۥٓ ءَاتَيْنَـٰهُ حُكْمًا وَعِلْمًا ۚ وَكَذَٰلِكَ نَجْزِى ٱلْمُحْسِنِينَ Qur’an Yusuf (12:22)Walamma balagha ashuddahu ataynahu hukman waAAilman wakathalika najzee almuhsineena
When Joseph left Canaan, he was a young and immature lad, but his nature was innocent and good. Through the vicissitudes of his fortune in Egypt, he grew in knowledge, judgment, and power.
Muhsinin: those who do right, those who do good. Both ideas are implied. In following right conduct, you are necessarily doing good to yourself and to others.