It was narrated that Abu Hurairah said:
The Messenger of Allah used to say: 'Allahumma, anfa'ni bima 'allamtani, wa 'allimnima yanfa'uni, wa zidni 'ilman. Wa'l-hamdu Lillahi 'ala kulli hal. [O Allah, benefit me by that which You have taught me, and teach me that which will benefit me, and increase my knowledge. Praise is to Allah in all circumstances].'