effective medicine is often hard to swallow; used as a metaphor to mean that honest advice or frank criticism can be unpleasant to hear but is ultimately beneficial
Confucius said: "Good medicine tastes bitter to the mouth, yet it is good for the illness; honest advice is unpleasant to the ear, yet it is good for one's conduct."