akhī lan tanāla’l ílma illā bi sittatin
sa unbīka án tafşīlihā bi bayāni
dhakā’un wa ĥirşun wa’jtihādun wa bulghatun
wa şuĥbatu ustādhin wa ţūlu zamāni

in verse:

six they are, without which, knowledge cannot be gained
hearken this o brother of mine, clearly ’tis explained
intellect, a greed to learn; and zeal, when means obtained
and then a master’s company, a lengthy time remained

translation:

my brother! you shall not attain knowledge without six [things]
i shall list them out clearly to you:
a keen intellect, an insatiable apetite [for knowledge], diligence and sufficient means;
the company of a teacher and having spent a very long time [in learning].

 

 

 

 

 

 

Dīwān ash-Shāfiýī p.378; Mirātu’l Jinān 2/26; Al-Mustaţraf 1/53