As human beings we are limited in our ability to know what the future holds, but if we have faith and fear of God, like the midwives Shiphrah and Puah did in standing up to Pharaoh in Exodus 1, we can know that it will always end up for our ultimate good.
15 Then the king of Egypt said to the Hebrew midwives, one of whom was named Shiphrah and the other Puah, 16 “When you serve as midwife to the Hebrew women and see them on the birthstool, if it is a son, you shall kill him, but if it is a daughter, she shall live.” 17 But the midwives feared God and did not do as the king of Egypt commanded them, but let the male children live. 18 So the king of Egypt called the midwives and said to them, “Why have you done this, and let the male children live?” 19 The midwives said to Pharaoh, “Because the Hebrew women are not like the Egyptian women, for they are vigorous and give birth before the midwife comes to them.” 20 So God dealt well with the midwives. And the people multiplied and grew very strong. 21 And because the midwives feared God, he gave them families. 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.”