Sahih Muslim | Book 20 | Chapter 47

Narrated by It has been narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him)
It has been narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) said: One who died but did not fight in the way of Allah nor did he express any desire (or determination) for Jihid died the death of a hypocrite.

'Abdullah b. Mubarak said: We think the hadith pertained to the time of the Messenger of Allah (may peace be upon him).