The Bible contains explicit commands of this kind, such as Deuteronomy 20:16-17 (leave nothing alive that breathes among certain nations), 1 Samuel 15:3 (kill men, women, children and infants of the Amalekites), and Numbers 31:17 (kill male children and non-virgin women).
The Quran has no parallel commands for genocide or deliberate killing of women and infants. It prohibits killing children (17:31, 6:151) and, with supporting hadiths, restricts wartime targeting of non-combatants.