Genesis 40:15 For indeed I was stolen away out of the land of the Hebrews: and here also have I done nothing that they should put me into the dungeon.
Joseph is in prison and has done nothing wrong. He has not sinned. He has not committed a crime. His jail time is the result of a series of bad things happening to a good man. He is in jail falsely accused of a crime that he did not commit.
He has every reason to have an attitude. He has done nothing wrong yet he does not get a bad attitude. Instead he continues to do right no matter what the circumstances. God is using all of this in his life.
By the way, he can’t see that right now. It is not obvious that he is on the way to what God is going to do with him. He can only continue to live by faith believing that God will meet his needs and use his life.
Soon he will be used to save the people of Israel and Egypt. Soon he will see the why for all of it but not today.
Are you in the middle of many things going wrong? Are you suffering for things that you did not do wrong? Does it seem that all of life is going against you?
Maybe God is allowing bad things to happen to you for a good reason. Take heart. Trust Him and do right and soon you will see that even in the worst of times God was at work in your life. God is good to His people.