suggests that
unpleasant circumstances can produce beneficial results, just as spring rain helps flowers grow.
Imagine a case where something bad or unpleasant today may bring good things in the future.; then “April showers bring May flowers” fits well.