In early life, just as they were passing from youth to manhood, Joseph and Daniel were separated from their homes and carried as captives to heathen land. especially was Joseph subject to the temptations that attend great changes of fortune. In his father's home a tenderly cherished child; in the house of Potiphar a slave, then a confidant and companion; a man of affairs, educated by study, observation, contact with men; in Pharaos's dungeon a prisoner of state, condemned unjustly, without hope of vindication or prospect of release; called at a great crisis to the leadership of the nation - what enabled him to preserve his integrity? (CC 366.3)
Loyalty to God, faith in the Unseen, was Joseph's anchor. In this lay the hiding of his power...(CC366.4)
By their wisdom and justice, by the purity and benevolence of their daily life. Joseph and Daniel proved themselves true to the principles to their ealry training, true to Him whose representative they were. (CC366.5)