It was narrated that Abu Hurairah said:
"The Messenger of Allah used to say: 'Allahummanfa'ni bima 'allamtani, wa 'allimnima yanfa'uni, wa zidni 'ilman. Wal-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].'"
English reference: Vol. 1, Book 1, Hadith 251
Arabic reference: Book 1, Hadith 259