Hardships are painful in the moment, but they are often a pathway to greater joy.