Joseph Addison said this quote

Our real blessings often appear to us in the shape of pains, losses and disappointments; but let us have patience and we soon shall see them in proper figures.