Abu Ishaq (may Allah have mercy on him) said that Sayyiduna al-Bara' bin Azib (may Allah be pleased with him) said to me: "Shall I not teach you a supplication that the Messenger of Allah (peace and blessings be upon him) taught me?" He said: "When you see people competing with one another for gold and silver, then supplicate with these words: 'Allahumma inni as'aluka al-thabata fi al-amr, wa as'aluka 'azimatan 'ala al-rushd, wa as'aluka shukra ni'matik, wa al-sabra 'ala bala'ik, wa as'aluka husna 'ibadatik, wa al-rida bi-qada'ik, wa as'aluka qalban saliman, wa lisanan sadiqan, wa as'aluka min khayri ma ta'lam, wa a'udhu bika min sharri ma ta'lam, wa astaghfiruka lima ta'lam' (O Allah, I ask You for steadfastness in the matter (of religion), and I ask You for firm resolve upon right guidance, and I ask You for gratitude for Your blessing and patience in Your trial, and I ask You for excellence in worshipping You and contentment with Your decree, and I ask You for a sound heart and a truthful tongue, and I ask You for all the good that You know, and I seek refuge in You from all the evil that You know, and I seek Your forgiveness for (the sins) that You know)."
No one narrated this hadith from Abu Ishaq (may Allah have mercy on him) except Musa bin Mutayr (may Allah have mercy on him), and Isma'il bin Amr (may Allah have mercy on him) is alone in narrating it from him.
Hadith Referenceالمعجم الأوسط / باب الميم / 7408
Hadith Takhrij«أخرجه الطبراني فى «الكبير» برقم: 1172»