It is narrated from Sayyiduna Abu Musa al-Ash'ari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever loves his worldly life harms his Hereafter, and whoever loves his Hereafter harms his worldly life. So prefer what will remain over what will perish."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الاستسقاء / 6516