Whenever I go through hard times, I remind myself of this parable:
Have you ever seen a blacksmith refining gold? He throws what looks like junk into a big melting pot and turns up the heat. As soon as he sees his reflection in the pot, he shuts off the heat and pours it out. Out comes the finest gold.