Joseph in the time of his distress kept the commandment, and was made lord of Egypt.
Joseph, in his time of trouble, kept the commandment and became lord of Egypt.