This quote means that the best way to measure a person’s worth is not seen in the moments when things are easy or comfortable, but rather in times when they are facing trouble or difficulties. It’s not just in good times that a man’s character and values can be seen, but more importantly in how he handles the hard times.