While serving as a slave in Egypt, Joseph was unjustly accused of a moral failure and landed in jail.