Captivity does not imply hopelessness.
The prophet Zechariah proclaimed to his people, who had only recently been delivered from bondage, “Turn you to the strong hold, ye prisoners of hope.” Then, he added a promise from the Lord: “even to day do I declare that I will render double unto thee” (Zechariah 9:12).
When Alma and his people were in bondage, the Lord responded to their prayers not with immediate deliverance, but with reassurances. “Lift up your heads and be of good comfort,” He said, “for I know of the covenant which ye have made unto me; and I will covenant with my people and deliver them out of bondage.” Thereafter, “they did submit cheerfully and with patience to all the will of the Lord,” until the day that they were finally set free (Mosiah 24:13, 15).
I have a friend who is currently incarcerated. He called me a couple of weeks ago, the day after Thanksgiving, not to complain about his circumstances but to express gratitude for the blessings he enjoys. He has a job which keeps him busy and enables him to earn money. He has a family who loves him. He has the gospel in his life. I was impressed by his positive outlook in an environment of severe restrictions. He is a prisoner of hope.
Today, I will be optimistic within my constraints. When I face difficulties, I will pray for help and then continue moving forward, trusting that those constraints will not prevent me from fulfilling my purpose.