proverb

Bitter pills may have sweet effects.

Theme: adversity Keyword: health

means that

Unpleasant experiences or necessary measures may lead to beneficial results.

Example

The difficult feedback helped him improve his work substantially.