"The king of Egypt said to the Hebrew midwives, whose names were Shiphrah and Puah, 'When you help the Hebrew women in childbirth and observe them on the delivery stool, if it is a boy, kill him; but if it is a girl, let her live.'" NIV translation
This persecution brought the Hebrews closer together as a people and they continued to increase in number. The fear of the Egyptians drove the king to order the murder of innocent male children.
We see much the same thing in the world today where many countries limit the number of children that a family can have because of a fear of over population. In other parts of the world, we see innocent children killed before they are born because of a fear that they cannot be supported or that they will cause problems for the parent. This is given the name "abortion" or "choice" instead of murder and is even sanctioned and approved by governments and courts. The good news is that Jesus died for those who have this done as well as the rest of us. You can see how in this woman's testimony.
"The midwives, however, feared God and did not do what the king of Egypt had told them to do; they let the boys live. Then the king of Egypt summoned the midwives and asked them, 'Why have you done this? Why have you let the boys live?' The midwives answered Pharaoh, 'Hebrew women are not like Egyptian women; they are vigorous and give birth before the midwives arrive.' So God was kind to the midwives and the people increased and became even more numerous. And because the midwives feared God, he gave them families of their own." NIV translation
Because the midwives feared God they disobeyed Pharaoh and let the boys live. They even went so far as to make an excuse when asked about it by the king. Because of their obedience to God, the Israelites became even more numerous and God blessed the midwives and gave them families.
There are some (even pastors and leaders of the church) who blindly follow the orders of the government and even tell their congregations that God expects them to do the same. Here, we see just the opposite in the fact that God blessed the midwives for their disobedience. This may not seem like such a big deal right now but, in the last days, governments are going to become more and more corrupt. Eventually, all men will have to decide to obey them or God.
"Then Pharaoh gave this order to all his people: 'Every boy that is born you must throw into the Nile, but let every girl live.'" NIV translation
Pharaoh gave up on the midwives and instead decreed that all boys born to the Hebrews should be thrown into the Nile River.