It is narrated from Sayyiduna Miswar bin Makhramah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) sent Sayyiduna Abu Ubaydah bin al-Jarrah (may Allah be pleased with him) to Bahrain. He then came back from there with wealth and arrived at night. The Ansar heard of his arrival in their homes, so they gathered for the Fajr prayer with the Messenger of Allah (peace and blessings be upon him). When the Prophet (peace and blessings be upon him) finished the prayer, he (peace and blessings be upon him) looked at them, then turned towards them, smiled and said: "I think you have received the news that Abu Ubaydah has come and has brought wealth with him? So rejoice and hope for what will please you. By Allah! It is not poverty that I fear for you; rather, I fear that the abundance of this world will be spread out for you as it was spread out for those before you, and then you will compete with one another for it as they competed, and then it will destroy you just as it destroyed them."
Imam Abu Ya'la recorded it, and there is a supporting narration (shahid) for it in the two Sahihs and elsewhere from the narration of Sayyiduna Amr bin Awf al-Ansari (may Allah be pleased with him).