Sahih Muslim Book 19, Hadith Number 4323.
Chapter : Permissibility of killing women and children in the night raids, provided it is not deliberate.
Sa’b b. Jaththama has narrated that the Prophet (may peace be upon him) asked: What about the children of polytheists killed by the cavalry during the night raid? He said: They are from them.