Sunan Ibn Majah #251 · The Book of the Sunnah

Sunan Ibn MajahIt was narrated that Abu Hurairah said
Sunan Ibn Majah · The Book of the Sunnah
Sunan Ibn Majah · كتاب السنة
"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]
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ نُمَيْرٍ، عَنْ مُوسَى بْنِ عُبَيْدَةَ، عَنْ مُحَمَّدِ بْنِ ثَابِتٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ كَانَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ يَقُولُ ‏
"‏ اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي وَعَلِّمْنِي مَا يَنْفَعُنِي وَزِدْنِي عِلْمًا وَالْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ ‏"‏ ‏.‏
Reference : Sunan Ibn Majah 251