Al-Harith al-A'war (may Allah have mercy on him) relates: I went to Sayyiduna Ali bin Abi Talib (may Allah be pleased with him), and he said: "Shall I not teach you a supplication which the Messenger of Allah (peace and blessings be upon him) taught me?" I said: "Yes." He said: "Say: 'Allahummaftah masami'a qalbi li-dhikrik, warzuqni ta'ataka wa ta'ata rasulika (peace and blessings be upon him), wa 'amalan bi-kitabik' (O Allah, open the ears of my heart to Your remembrance, grant me obedience to You and obedience to Your Messenger (peace and blessings be upon him), and grant me the ability to act upon Your Book)."
Imam al-Tabarani (may Allah have mercy on him) said: "This hadith is not narrated from Sayyiduna Ali (may Allah be pleased with him) except with this chain; Wahb bin Yahya bin Zimam is alone in narrating it."
Hadith Referenceالمعجم الأوسط / باب الميم / 5341
Hadith Takhrij«أخرجه الطبراني فى «الأوسط» برقم: 1286»