Sunan Ibn Majah, Book 36, Hadith 41 (Ibn Majah 3969)

It was narrated from Abu Umamah that the Messenger of Allah (ﷺ) said:

“Among the worst people in status before Allah on the Day of Resurrection will be a person who loses his Hereafter for the sake of this world.”