It is narrated from Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said to us: "Seek refuge in Allah from greed that leads to the corruption of the heart (or to humiliation and disgrace), from greed for something there is no hope of attaining, and from greed where there is no place for greed." In the narration of Imam Abu Ya'la al-Mawsili it is reported that among the supplications of the Messenger of Allah (peace and blessings be upon him) was this one: 'Allahumma inni a'udhu bika min tama'in haythu la tama, wa min tama'in fi ghayri matma, wa a'udhu bika min tama'in yahdi ila tab' (O Allah, I seek refuge in You from greed where there is no room for greed, from greed for something impossible to attain, and I seek refuge in You from greed that leads to the rusting of the heart). According to the narration of Imam al-Bazzar, he (peace and blessings be upon him) used to seek refuge with these words: 'A'udhu bika min tama'in yahdi ila tab, wa a'udhu bika min tama'in haythu la matma, aw fi ghayri matma' (I seek refuge in You from greed that causes the heart to be sealed, and from greed where there is no place for greed, or where greed is futile).
Hafiz Ibn Hajar al-Asqalani (may Allah have mercy on him) mentioned it among the additions (zawa'id) of Musnad al-Bazzar over Musnad Ahmad, although it is also present in Musnad Ahmad, so there is no need to mention it separately. All the chains of this hadith revolve around Abdullah bin Amir al-Aslami, and he is a da'if (weak) narrator.
Hadith Takhrij«ومدار أسانيد هذا الحديث على عبد الله بن عامر الأسلمي ، وهو ضعيف» «(6300/1) أخرجه مسند أحمد برقم: 21516، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 17181، وأخرجه شرح السنة برقم: 1363» «(6300/2) أخرجه مسند أحمد برقم: 21516، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 17181، وأخرجه شرح السنة برقم: 1363»