Sahih Muslim #1745 a
The Book of Jihad and Expeditions 32:30
It is reported on the authority of Sa'b b. Jaththama that the Prophet of Allah (ﷺ), when asked about the women and children of the polytheists being killed during the night raid, said:
They are from them.