The Messenger of Allah ﷺ said, "Whoever equips a fighter in the path of Allah has himself fought, and whoever looks after his family in his absence with kindness has himself fought."
حدثنا عبد الله بن عمرو بن أبي الحجاج أبو معمر حدثنا عبد الوارث حدثنا الحسين حدثني يحيى حدثني أبو سلمة حدثني بسر بن سعيد
أن رسول الله ﷺ قال من جهز غازيا في سبيل الله فقد غزا ومن خلفه في أهله بخير فقد غزا
Bukhari narrated it in the Book of Jihad and Expeditions, the chapter on the merit of one who equips a fighter or takes care of his dependents while he is away, hadith 2843, from Abu Muamar, and Muslim narrated it in the Book of Leadership, the chapter on the merit of aiding a fighter in the cause of Allah with a mount or otherwise, and so on, hadith 1895, from the hadith of Husayn Muallim, with the same wording.Yahya is Ibn Abu Kathir, and Abu Salama is the son of Abdul-Rahman bin Awf.