Jami` at-Tirmidhi, Book 22, Hadith 10 (Tirmidhi 1676)

Narrated Zaid bin Khalid Al-Juhani:

That the Messenger of Allah (ﷺ) said, "Whoever prepares a fighter in Allah's cause, he has participated in a military expedition, and whoever looks after the family of a fighter, he has participated in a military expedition." This Hadith is Hasan Sahih, and it has been reported through more than one route.