Tanakh, Exodus 1:15-16
The King of Egypt spoke to the Hebrew midwives, one of whom was named Shiprah and the other Puah, saying, “When you deliver the Hebrew women, look at the birthstool: if it is boy, kill him; if it is a girl, let her live.”
Bible, Matthew 2:16
When Herod saw that he had been tricked by the wise men, he was infuriated, and he sent and killed all the children in and around Bethlehem who were two years old or under, according to the time that he had learned from the wise men/
And so Moses said to his people, ‘Remember God’s blessing on you when He saved you from Pharaoh’s people, who were inflicting terrible suffering on you, slaughtering your sons and sparing only your women––that was a severe test from your Lord!