It is narrated by Ibn 'Umar that a woman was found killed in one of these battles; so the Messenger of Allah ﷺ forbade the killing of women and children.
This hadith also reminds us that we must always strive for peace instead of engaging in violence whenever possible. We should try our best to resolve conflicts through dialogue rather than resorting to physical force or aggression against others. Even if we do have to fight, we must still remember the teachings of this hadith and show mercy towards those who are not involved in the fighting by refraining from killing them unnecessarily.