Sayyiduna Anas (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "Whoever's intention is the Hereafter, Allah Almighty will place contentment in his heart, gather his affairs together for him, remove poverty from before his eyes, and the world will come to him submissively. He will be rich in the morning and rich in the evening. And whoever's intention is the world, Allah Almighty will place poverty before his eyes; he will be poor in the morning and poor in the evening."
Al-Bazzar recorded it; its chain contains Isma'il bin Muslim al-Makki, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الزهد / 17813