وَلَمَّا بَلَغَ أَشُدَّهُۥٓ ءَاتَيْنَـٰهُ حُكْمًا وَعِلْمًا ۚ وَكَذَٰلِكَ نَجْزِى ٱلْمُحْسِنِينَ Qur’an Yusuf (12:22)Walamm a balagha ashuddahu a tayn a hu h ukman waAAilman waka tha lika najzee almu h sineen a
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.