Thereafter the Messenger of Allah (ﷺ) prohibited to kill women and children.
Sunan Abi Dawud Book 15, Hadith 196