He entered upon Anas bin Malik and heard him mention that the Messenger of Allah ﷺ used to say, "O Allah, benefit me with what You have taught me, teach me what will benefit me, and grant me knowledge by which You will benefit me."
أنه دخل على أنس بن مالك، قال: فسمعته يذكر أن رسول الله ﷺ كان يقول: اللهم انفعني بما علمتني، وعلمني ما ينفعني، وارزقني علما تنفعني به.
Nasai narrated it in al-Kubra (7819), Tabarani in al-Dua (1405), and Hakim (1/510) - and from him Bayhaqi in al-Dawaat (241) - all of them through chains from Abdullah bin Wahb, who said, Usama bin Zayd informed me that Sulayman bin Musa narrated to him from Makhul, and he mentioned it.Hakim said, "This is a hadith sahih according to the criterion of Muslim." I say, it is as he said, except that Usama bin Zayd and Sulayman bin Musa, who is al-Ashdaq, both have some criticism against them that lowers his hadith to the level of hasan.Similar in meaning is what was narrated from Abu Hurairah, who said, the Messenger of Allah ﷺ said, "O Allah, benefit me with what You have taught me, teach me what will benefit me, and increase me in knowledge. Praise be to Allah in every circumstance, and I seek refuge in Allah from the state of the people of the Fire."Tirmidhi narrated it (3599), and Ibn Majah (251, 3804, 3833), both through the route of Musa bin Ubayda, from Muhammad bin Thabit, from Abu Hurairah, and he mentioned it. Tirmidhi said, "This is an unusual hadith by this route."And that is indeed so, for in its chain is Musa bin Ubayda, who is al-Rabadhi, and he is daif, and his teacher Muhammad bin Thabit is unknown.