What’s your problem? Paul was in jail. He sang songs. He wrote letters. He grew in God. It didn’t seem to bother him a bit. His outward circumstances were irrelevant. We have a significant portion of the New Testament because he went to jail.
Marco Polo too. If he hadn’t been imprisoned by rivals Genoese, he probably would not have written about his travels to China. This, in turn, opened up trade, interchange of goods, discoveries of paper, noodles and gun powder to Europe.
Maybe God has brought you to bad circumstances for a later good purpose. Don’t mope. Enjoy, burst with optimism, bound out of the gate, the world is yours! Your current challenges are tomorrow’s triumphs! The desert precedes the Promised Land! If you pass the test, you pass the course. God has not brought failures upon you except to bring later successes. So in your struggles today, pray and look up.