And when he [Yûsuf (Joseph)] attained his full manhood, We gave him wisdom and knowledge (the Prophethood), thus We reward the Muhsinûn (doers of good - see V.2:112). [+] [Yusuf 12:22]