He entered upon Anas bin Malik and heard him relate that the Messenger of Allah ﷺ used to say, "O Allah, benefit me by what You have taught me, teach me what will benefit me, and grant me knowledge that will benefit me."
أنه دخل على أنس بن مالك، قال: فسمعته يذكر أن رسول الله ﷺ كان يقول: اللهم انفعني بما علمتني، وعلمني ما ينفعني، وارزقني علما تنفعني به.
Tabarani narrated it in al-Dua (1405/1455/3), and Hakim (1/510), and from him Bayhaqi in al-Dawat al-Kabir (157–158), through the route of Abdullah bin Wahb, who said, Usama bin Zayd informed me, that Sulayman bin Musa narrated to him, from Makhul, and he mentioned the hadith. Hakim said, "Sahih according to the criterion of Muslim." And it is as he said, except that Sulayman bin Musa, who is the Damascene, al-Ashdaq, is disputed, though his hadith is hasan when there is no irregularity in it. And Usama bin Zayd is al-Laythi, about whom there is some discussion that does no harm.Of similar meaning is what was narrated from Abu Hurairah, that he said, the Messenger of Allah ﷺ used to say, "O Allah, I seek refuge in You from four things, from knowledge that does not benefit, from a heart that does not humble itself, from a soul that is not satisfied, and from a supplication that is not heard." In it there is an unknown narrator. Abu Dawud narrated it (1548), Nasai (5467), and Ibn Majah (3837), from the hadith of Layth bin Saad, from Saeed bin Abu Saeed Maqburi, from his brother Abbad bin Abu Saeed, that he heard Abu Hurairah, and he mentioned it.Abbad bin Abu Saeed is counted among the unknowns, since no one narrated from him except his brother Saeed, and he has nothing in the Sunan besides this hadith, and he was not corroborated in it from Abu Hurairah. Although it has been authentically transmitted from Zayd bin Arqam and other companions, from Abu Hurairah it has come only through this route of Abbad, and Allah knows best.