Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever dies without having taken part in a military campaign, and without ever having intended to do so, dies upon a branch of hypocrisy."Abdullah bin Mubarak commented, "We consider this to have applied during the lifetime of the Messenger of Allah ﷺ."

Azami 7792

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: من مات ولم يغز، ولم يحدث به نفسه مات على شعبة من نفاق. قال عبد الله بن المبارك: فنرى أن ذلك كان على عهد رسول الله ﷺ.

الأعظمي 7792صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Virtues of jihad
Section
Censure of one who does not think to himself about military expeditions
Numbering
Jami al-Kamil 7792 (2nd edition)
Azami 7792