Permissibility of killing women and children in night raids, so long as it is not done deliberately Sahih Muslim 1745 c
Translation
Sa'b b. Jaththama has narrated that the Prophet (ﷺ) asked
What about the children of polytheists killed by the cavalry during the night raid? He said: They are from them.