The text does not say, but it appears that this policy was not permanent. Later, when Israel groans before the Lord, it is because of their harsh slavery rather than the death of their infant boys (Exodus 2:23). And Israel’s time in Egypt is consistently remembered as a time of slavery rather than one of infanticide (e.g., Exodus 13:3, Exodus 13:14; Exodus 20:2; Joshua 24:17).
22 Then Pharaoh commanded all his people, “Every son that is born to the Hebrews you shall cast into the Nile, but you shall let every daughter live.”