Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “O Allah, benefit me with what you have taught me, teach me what will benefit me, and increase my knowledge. All praise is due to Allah in every circumstance and I seek refuge in Allah from the condition of the people of the Hellfire.”
Source: Sunan al-Tirmidhī 3599
Grade: Hasan (fair) according to Ibn Hajar
عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي وَعَلِّمْنِي مَا يَنْفَعُنِي وَزِدْنِي عِلْمًا الْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ وَأَعُوذُ بِاللَّهِ مِنْ حَالِ أَهْلِ النَّارِ
3599 سنن الترمذي كتاب الدعوات باب في العفو والعافية
457 المحدث ابن حجر العسقلاني خلاصة حكم المحدث إسناده حسن في بلوغ المرام