Being so far away from his family and all who knew him, he could have acted any way that he wanted. Who would have known? God would have. Joseph loved God and wanted to do what was right and what he felt would please Him. So, Joseph lived a spotless life in Egypt and because he did, God honoured him. Eventually he used him to save his whole family.
Regardless of what men do to you, God can turn it around for your good, if you trust Him. No matter where you go or whatever situation we find ourselves in, God is always there. Psalm 139:7-10 tells us that there is nowhere we can go that God is not. We should praise God for how He cares for us.
We serve a great big wonderful God. We who love Him can truly say with the Psalmist in Psalm 113:3,"From the rising of the sun unto the going down of the same, the Lord's name is to be praised."