Exodus 1:16-18

16 And he said, When you midwife the Hebrew women, and look on the birth stools, if it [is] a son, then you shall kill him. But if it [is] a daughter, then she shall live.

17 But the midwives feared God, and did not do as the king of Egypt commanded them, but saved alive the male children.

18 And the king of Egypt called for the midwives and said to them, Why have you done this thing, and have saved the male children alive?