Sunan Ibn Majah, Volume 5, Book 37, Hadith 4260 (DarusSalam)

It was narrated from Abu Ya’la Shaddad bin Aws that the Messenger of Allah said: “The wise man is the one who takes account of himself and strives for that which is after death. And the helpless man is the one who follows his own whims then indulges in wishful thinking about Allah.”

حَدَّثَنَا هِشَامُ بْنُ عَبْدِ الْمَلِكِ الْحِمْصِيُّ، حَدَّثَنَا بَقِيَّةُ بْنُ الْوَلِيدِ، حَدَّثَنِي ابْنُ أَبِي مَرْيَمَ، عَنْ ضَمْرَةَ بْنِ حَبِيبٍ، عَنْ أَبِي يَعْلَى، شَدَّادِ بْنِ أَوْسٍ قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏:‏ ‏ "‏ الْكَيِّسُ مَنْ دَانَ نَفْسَهُ وَعَمِلَ لِمَا بَعْدَ الْمَوْتِ وَالْعَاجِزُ مَنْ أَتْبَعَ نَفْسَهُ هَوَاهَا ثُمَّ تَمَنَّى عَلَى اللَّهِ ‏" ‏ ‏.‏

sunnah.com