Sayyidah Umm ‘Atiyyah (Nusaybah bint al-Harith) رضي الله عنها said: I participated in seven battles with the Noble Prophet ﷺ; I would treat the wounded, prepare food for them, and guard their belongings.
Hadith Referenceسنن دارمي / من كتاب الجهاد / 2459
Hadith Gradingتحقیق (حسین سلیم أسد الدارانی):إسناده صحيح وأبو إسحاق هو: إبراهيم بن محمد بن الحارث، [مكتبه الشامله نمبر: 2466]
From this hadith, it is established that a woman may accompany the mujahideen in jihad, nurse the sick, serve the mujahideen, and look after their belongings; that is, in times of necessity, a woman can participate in jihad. And Allah knows best.