And Sarai said to Abram, "Behold now, YHWH has prevented me from bearing children..."
Genesis 16:2

Sometimes God puts us in difficult and seemingly hopeless situations because he has a higher perspective and knows the eventual outcome.